
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>loadcursor()</b>
[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
LoadCursor()
Load a standard Windows cursor or a cursor resource
------------------------------------------------------------------------------
Syntax
LoadCursor( <hInst>, <nCursor> | <cCursor> ) --> hCursor
Arguments
<hInst> is the handle of the instance of the application (as
returned by the _GetInstance() function), or a handle of a DLL
(as returned by the LoadLibrary() function). The default is the
current application.
<nCursor> is a number identifying a pre-defined cursor to load
(one of the IDC_* values defined in WINDOWS.CH), or the numeric id
of a cursor resource.
<cCursor> is the name of a cursor resource.
Returns
If successful, the handle to the cursor is returned as a non-
zero number. Otherwise, zero (0) is returned.
Description
This function can be used to access the standard (pre-defined)
cursors known to Windows, or to fetch cursors from resource files.
If an application uses this function, it should not call the
DestroyCursor() function.
Example
hCursor = LoadCursor( hInst, IDC_WAIT ) // hour-glass cursor
hOldCursor = SetCursor( hCursor )
// . . . do something potentially time-consuming . . .
SetCursor( hOldCursor )
See Also: DestroyCursor() SetCursor()
Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson