Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- The Guide to Clip-4-Win version 3.0 - <b>drawicon()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
DrawIcon()
Draw an icon on a specified device
------------------------------------------------------------------------------

Syntax
DrawIcon( <hDC>, <nX>, <nY>, <hIcon> )   -->   lSuccess

Arguments
<hDC> specifies the device context for a window.

<nX>, <nY> specify the position of the top left-hand corner of
the icon in pixels.

<hIcon> is the handle of the icon to use.

Returns
If successful, logical TRUE (.T.) is returned, otherwise FALSE
(.F.) is returned.

Description
This function draws an icon on the specified device, putting
the upper-left corner of the icon at the position specified.

Example
hMyIcon = LoadIcon( hInst, IDI_HAND )        // STOP sign
DrawIcon( hDC, 100, 100, hMyIcon )


See Also: LoadIcon()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson