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

Syntax
CreateCursor( <hInst>, <nXHot>, <nYHot>, <nWidth>, <nHeight>,
              <cANDbits>, <cXORbits> )   -->   lSuccess

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

<nXHot>, <nYHot> specify the position of the cursor hot spot.

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

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

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

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

Description
This function can be used to create an application-specific
cursor.  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_CXCURSOR and SM_CYCURSOR parameters.

Any cursor created must be freed using the DestroyCursor()
function.

Example



See Also: DestroyCursor() LoadCursor() SetCursor()

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