Admin Production ni-theme
Current Publication

GetMouseCursor

LabWindows/CVI

GetMouseCursor

int GetMouseCursor (int *mouseCursorStyle);

Purpose

Returns the mouse cursor style set with SetMouseCursor.

Parameters

Output
Name Type Description
mouseCursorStyle int The mouse cursor style set with SetMouseCursor.

The following table lists the mouse cursor styles.

VAL_DEFAULT_CURSOR -1L
VAL_CHECK_CURSOR 11L
VAL_CROSS_HAIR_CURSOR 12L
VAL_BOX_CURSOR 13L
VAL_POINTING_FINGER_CURSOR 14L
VAL_OPEN_HAND_CURSOR 15L
VAL_QUESTION_MARK_CURSOR 16L
VAL_HOUR_GLASS_CURSOR 17L
VAL_HIDDEN_CURSOR 18L
VAL_SIZE_NS_CURSOR 19L
VAL_SIZE_EW_CURSOR 20L
VAL_SIZE_NW_SE_CURSOR 21L
VAL_SIZE_NE_SW_CURSOR 22L
VAL_CLOSED_HAND_CURSOR 23L
VAL_SIZE_EW_CURSOR_2 26L
VAL_SIZE_NS_CURSOR_2 27L
VAL_MOVE_CURSOR 28L

Return Value

Name Type Description
status int Return value indicating whether the function was successful. A negative number indicates that an error occurred.

Additional Information

Library: User Interface Library

Include file: userint.h

LabWindows/CVI compatibility: LabWindows/CVI 3.0 and later

Examples

Refer to the following examples that use the GetMouseCursor function:

  • userint\canvas.cws

    Open example
  • userint\timeaxis.cws

    Open example