A cursor is a small picture whose location on the screen is controlled by a pointing device, such as a mouse, pen, or trackball. When the user moves the pointing device, the Windows operating system moves the cursor.
Supported Properties and Methods
- The ChildCount is zero.
- Developers can create custom cursors or use the predefined cursors that are identified by their cursor ID. The Name property of the cursor depends on its shape and is one of the following:
Cursor shape Name Custom cursor "Unknown" IDC_ARROW "Normal" IDC_IBEAM "Edit" IDC_WAIT "Wait" IDC_CROSS "Graphic" IDC_UPARROW "Up" IDC_SIZENWSE "NWSE size" IDC_SIZENESW "NESW size" IDC_SIZEWE "Horizontal size" IDC_SIZENS "Vertical size" IDC_SIZEALL "Move" IDC_NO "Forbidden" IDC_APPSTARTING "App start" IDC_HELP "Help"
- The Role property is ROLE_SYSTEM_CURSOR.
- The State property is a combination of one or more of the following values:
STATE_SYSTEM_INVISIBLE | STATE_SYSTEM_FLOATING
Unlike other UI elements, the cursor object does not have an associated window handle. To obtain access to the cursor object, clients must set a WinEventProc callback function and wait for the cursor object to generate events.