[Home] [Prev] [Next] [Up]
SetCursorID
Sets the mouse pointer to the specified cursor shape.
Usage:
#include <XCursorUtil.h>
void SetCursorID(short resID);
Description
This sets the cursor shape to the specified shape. Either this can be one of the predefined constants below, or a resource identifier to a cursor resource in the application's resource fork.
On the Macintosh, this first attempts to load the color cursor resource of the identified name; if it cannot be found, this attemps to load the black and white version.
On Windows, this loads the specified cursor by first conerting the identifier using MAKEINTRESOURCE() Win32 API macro, and loads the specified cursor resource.
The following cursor types are predefined, and cause the appropriate cursor to be loaded:
KNormalCursor: Loads the default arrow
KIBeamCursor: Loads the text edit IBeam cursor
KCrossCursor: Loads a hair cross
KPlusCursor: Loads a thick plus cursor
KWatchCursor: Puts up the default watch cursor