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>createicon()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
CreateIcon()
Makes a new icon
------------------------------------------------------------------------------

Syntax
CreateIcon( <hInst>, <nWidth>, <nHeight>, <nPlanes>,
            <nBitsPerPixel>, <cANDbits>, <cXORbits> )   -->  lSuccess

Arguments
<hInst> identifies the instance of the application.  It should
be obtained from _GetInstance().

<nWidth>, <nHeight> specify the size of the icon in pixels.

<nPlanes> specifies the number of planes in the XOR mask of
the icon.

<nBitsPerPixel> specifies the number of bits per pixel in the
XOR mask of the icon.

<cANDbits> is a character string specifying the values for the
bits used for the AND mask of the icon.

<cXORbits> is a character string specifying the values for the
bits used for the XOR mask of the icon.

Returns
If successful, a handle to the new icon is returned (a non-
zero numeric).  Otherwise, zero is returned.

Description
This function can be used to create an application-specific
icon.  Note that the <nWidth> and <nHeight> values must be
compatible with the current display driver.  Suitable values
can be obtained using the GetSystemMetrics() function, using
the SM_CXCICON and SM_CYICON parameters.

Any icon created must be freed using the DestroyIcon()
function.

Example


See Also: DestroyIcon() DrawIcon() GetSystemMetrics()

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