Cursor

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

  • accHitTest
    accLocation
    get_accChildCount
    The ChildCount is zero.

  • get_accName
    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"
  • get_accRole
    The Role property is ROLE_SYSTEM_CURSOR.

  • get_accState
    The State property is a combination of one or more of the following values:

    STATE_SYSTEM_INVISIBLE | STATE_SYSTEM_FLOATING

Events Generated

EVENT_OBJECT_SHOW

EVENT_OBJECT_HIDE

EVENT_OBJECT_NAMECHANGE

Remarks

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.

See Also

IAccessible Interface