Skip to content

Latest commit

 

History

History
60 lines (44 loc) · 1.49 KB

DrawIcon.md

File metadata and controls

60 lines (44 loc) · 1.49 KB

Home

Function name : DrawIcon

Group: Icon - Library: user32


Draws an icon or cursor into the specified device context.


Code examples:

Drawing standard Windows icons
How to view icons stored in executable files (Icon Viewer)
Storing screen shot of a form to bitmap file
Drawing icons associated with the VFP main window
Drawing cursors for the classes defined by the system (preregistered): BUTTON, EDIT, LISTBOX etc.

Declaration:

BOOL DrawIcon(
  HDC hDC,      // handle to DC
  int X,        // x-coordinate of upper-left corner
  int Y,        // y-coordinate of upper-left corner
  HICON hIcon   // handle to icon
);  

FoxPro declaration:

DECLARE SHORT DrawIcon IN user32;
	INTEGER hDC,;
	INTEGER X,;
	INTEGER Y,;
	INTEGER hIcon  

Parameters:

hDC [in] Handle to the device context into which the icon or cursor will be drawn.

X [in] Specifies the logical x-coordinate of the upper-left corner of the icon.

Y [in] Specifies the logical y-coordinate of the upper-left corner of the icon.

hIcon [in] Handle to the icon to be drawn.


Return value:

If the function succeeds, the return value is nonzero.