User32CreateCursor Method
Creates a cursor having the specified size, bit patterns, and hot spot.
Namespace: DevCase.Win32.NativeMethodsAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[DllImportAttribute("User32.dll", ExactSpelling = true, SetLastError = true)]
public static IntPtr CreateCursor(
IntPtr hInst,
int xHotSpot,
int yHotSpot,
int width,
int height,
IntPtr planeAND,
IntPtr planeXOR
)
<DllImportAttribute("User32.dll", ExactSpelling := true, SetLastError := true>]
Public Shared Function CreateCursor (
hInst As IntPtr,
xHotSpot As Integer,
yHotSpot As Integer,
width As Integer,
height As Integer,
planeAND As IntPtr,
planeXOR As IntPtr
) As IntPtr
Dim hInst As IntPtr
Dim xHotSpot As Integer
Dim yHotSpot As Integer
Dim width As Integer
Dim height As Integer
Dim planeAND As IntPtr
Dim planeXOR As IntPtr
Dim returnValue As IntPtr
returnValue = User32.CreateCursor(hInst,
xHotSpot, yHotSpot, width, height,
planeAND, planeXOR)
public:
[DllImportAttribute(L"User32.dll", ExactSpelling = true, SetLastError = true)]
static IntPtr CreateCursor(
IntPtr hInst,
int xHotSpot,
int yHotSpot,
int width,
int height,
IntPtr planeAND,
IntPtr planeXOR
)
[<DllImportAttribute("User32.dll", ExactSpelling = true, SetLastError = true)>]
static member CreateCursor :
hInst : IntPtr *
xHotSpot : int *
yHotSpot : int *
width : int *
height : int *
planeAND : IntPtr *
planeXOR : IntPtr -> IntPtr
No code example is currently available or this language may not be supported.
- hInst IntPtr
-
A handle to the current instance of the application creating the cursor.
- xHotSpot Int32
-
The horizontal position of the cursor's hot spot.
- yHotSpot Int32
-
The vertical position of the cursor's hot spot.
- width Int32
-
The width of the cursor, in pixels.
- height Int32
-
The height of the cursor, in pixels.
- planeAND IntPtr
-
An array of bytes that contains the bit values for the AND mask of the cursor, as in a device-dependent monochrome bitmap.
- planeXOR IntPtr
-
An array of bytes that contains the bit values for the XOR mask of the cursor, as in a device-dependent monochrome bitmap.
IntPtr
If the function succeeds, the return value is a handle to the cursor.
If the function fails, the return value is
Zero.