HCURSOR CreateCursor(hInstance,nXhotspot,nYhotspot,nWidth,nHeight,lpANDbitPlane,lpXORbitPlane)
This function creates a cursor that has specified width, height, and bit patterns.
Parameter | Type/Description | |
hInstance | HANDLE Identifies an instance of the module creating the cursor. | |
nXhotspot | int Specifies the horizontal position of the cursor hotspot. | |
nYhotspot | int Specifies the vertical position of the cursor hotspot. | |
nWidth | int Specifies the width in pixels of the cursor. | |
nHeight | int Specifies the height in pixels of the cursor. | |
lpANDbitPlane | LPSTR Points to an array of bytes containing the bit values for the AND mask of the cursor. This can be the bits of a device-dependent monochrome bitmap. |
|
lpXORbitPlane | LPSTR Points to an array of bytes containing the bit values for the XOR mask of the cursor. This can be the bits of a device-dependent monochrome bitmap. |
The return value identifies the cursor if the function was successful. Otherwise, it is NULL.