A | B | C |  D | E | F |  G | H | I |  J | K | L |  M | N | O |  P | Q | R |  S | T | U |  V | W | X |  Y | Z



CreateCursor

The CreateCursor function creates a cursor having the specified size, bit patterns, and hot spot.

VB4-32,5,6
Declare Function CreateCursor Lib "user32" Alias "CreateCursor" (ByVal hInstance As Long, ByVal nXhotspot As Long, ByVal nYhotspot As Long, ByVal nWidth As Long, ByVal nHeight As Long, lpANDbitPlane As Any, lpXORbitPlane As Any) As Long

VB.NET
System.Windows.Forms.Cursor

Operating Systems Supported
Requires Windows NT 3.1 or later; Requires Windows 95 or later

Library
User32

Parameter Information
- hInst
Identifies the current instance of the application creating the cursor.

- xHotSpot
Specifies the horizontal position of the cursor’s hot spot.

- yHotSpot
Specifies the vertical position of the cursor’s hot spot.

- nWidth
Specifies the width, in pixels, of the cursor.

- nHeight
Specifies the height, in pixels, of the cursor.

- pvANDplane
Points to an array of bytes that contains the bit values for the AND bitmask of the cursor, as in a device-dependent monochrome bitmap.

- pvXORplane
Points to an array of bytes that contains the bit values for the XOR bitmask of the cursor, as in a device-dependent monochrome bitmap.

Return Values
If the function succeeds, the return value identifies the cursor.

If the function fails, the return value is NULL. To get extended error information, call GetLastError.

Last update: 07 April 2006