The LoadCursor function loads the specified cursor resource from the executable (.EXE) file associated with an application instance.
Declare Function LoadCursor Lib "user32" Alias "LoadCursorA" (ByVal hInstance As Long, ByVal lpCursorName As String) As Long
|Operating Systems Supported|
|Requires Windows NT 3.1 or later; Requires Windows 95 or later|
Identifies an instance of the module whose executable file contains the cursor to be loaded.
Points to a null-terminated string that contains the name of the cursor resource to be loaded. Alternatively, this parameter can consist of the resource identifier in the low-order word and zero in the high-order word. The MAKEINTRESOURCE macro can also be used to create this value.
To use one of the Win32 predefined cursors, the application must set the hInstance parameter to NULL and the lpCursorName parameter to one the following values:
Standard arrow and small hourglass
Obsolete for applications marked version 4.0 or later.
Obsolete for applications marked version 4.0 or later. Use IDC_SIZEALL.
Double-pointed arrow pointing northeast and southwest
Double-pointed arrow pointing north and south
Double-pointed arrow pointing northwest and southeast
Double-pointed arrow pointing west and east
|If the function succeeds, the return value is the handle of the newly loaded cursor. |
If the function fails, the return value is NULL. To get extended error information, call GetLastError.