Skip to content

Latest commit

 

History

History
66 lines (49 loc) · 2.2 KB

GetDeviceCaps.md

File metadata and controls

66 lines (49 loc) · 2.2 KB

Home

Function name : GetDeviceCaps

Group: Device Context - Library: gdi32


The GetDeviceCaps function retrieves device-specific information for the specified device.


Code examples:

How to view icons stored in executable files (Icon Viewer) - II
Retrieving graphic capabilities of default printer
How to print FoxPro form
Converting twips to pixels and vice versa
Retrieving graphic capabilities of your display
How to print a bitmap file
Printing text with the Escape function
Subclassing CommandButton control to create BackColor property
Vertical Label control
Storing screen shot of a form to enhanced metafile (*.emf)
Copying picture of the active form to the Clipboard using Enhanced Metafile API functions
How to print picture stored in enhanced-format metafile (*.emf)
How to print FoxPro form -- II
Displaying the associated icons and descriptions for files and folders
How to find which fonts Windows uses for drawing captions, menus and message boxes

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.


Comments:

See also: SYSMETRIC()