 |
GetDeviceCaps ..msdn Add comment W32 Constants Translate this page |
 |
 |
|
The GetDeviceCaps function retrieves device-specific information for the specified device. |
 |
 |
| Code examples: |
 |
|
|
 |
 |
| Declaration: |
 |
 |
int GetDeviceCaps(
HDC hdc, // handle to DC
int nIndex // index of capability
);
|
 |
 |
 |
| FoxPro declaration: |
 |
 |
DECLARE INTEGER GetDeviceCaps IN gdi32;
INTEGER hdc,;
INTEGER nIndex
|
 |
 |
 |
| Parameters: |
 |
hdc
[in] Handle to the DC.
nIndex
[in] Specifies the item to return. This parameter can be one of the predefined values (see examples). |
 |
 |
| Return value: |
 |
| The return value specifies the value of the desired item. |
 |
 |
| Usage: |
 |
#DEFINE PHYSICALOFFSETX 0x0070
#DEFINE PHYSICALOFFSETY 0x0071
* retrieving printer device context
* and offsets for printed page
hPrnDC = GetDefaultPrnDC()
xOffsPrn = GetDeviceCaps(hPrnDC, PHYSICALOFFSETX)
yOffsPrn = GetDeviceCaps(hPrnDC, PHYSICALOFFSETY)
|
 |
 |
| My comment: |
 |
| See also: VFP SYSMETRIC() function |
 |
 |
| Word Index links for the GetDeviceCaps : |
 |
|
|
 |
 |
| Translate this page: |
 |
|
 |
 |
| • |
 |
| Created: | 2001-09-19 12:00:00 | | Modified: | 2009-02-23 13:14:12 | Visited in last 7 days: 67 |