GetDeviceCaps
retrieves device-specific information for the specified device
See also: https://msdn.microsoft.com/en-us/library/windows/desktop/dd144877(v=vs.85).aspx
Syntax
GetDeviceCaps( hdc, nIndex )
Parameters
Name | Type | Description |
---|---|---|
hdc | Long | Required. A handle to the DC. |
nIndex | Long | Required. The item to be returned. 88 = Number of pixels per logical inch along the screen width, 90 = Number of pixels per logical inch along the screen height. |
Return value
Long : The return value specifies the value of the desired item.
Code
Private Declare Function GetDeviceCaps Lib "gdi32" (ByVal hdc As Long, ByVal nIndex As Long) As Long
Remarks
- API is used to determine the width and height of the screen.
See also
- ScreenWidth
- ScreenHeight