VCSetCursor


Version:

2.0

Description:

Changes the Visual CADD™ cursor to the input type. 

Declaration:

 

C/C++

extern "C" void WINAPI VCSetCursor(short* iError, char* dzName);

Delphi

procedure VCSetCursor(var iError: Smallint; dzName: PAnsiChar); stdcall;

ActiveX/COM

Sub SetCursor(ByVal dzName As String)

Parameters:

szName - the string value for the cursor type.
NULL - reset to the Visual CADD™ control.
IDC_CROSS - see Windows API SetCursor.
IDC_ARROW - see Windows API SetCursor.
IDC_IBEAM - see Windows API SetCursor.
IDC_SIZE - see Windows API SetCursor.
IDC_SIZENESW - see Windows API SetCursor.
IDC_SIZENS - see Windows API SetCursor.
IDC_SIZENWSE - see Windows API SetCursor.
IDC_SIZEWE - see Windows API SetCursor.
IDC_UPARROW - see Windows API SetCursor.
IDC_WAIT - see Windows API SetCursor.
IDC_HAND - see Windows API SetCursor.

Notes:

The command will simply change the cursor type to one of the default Windows cursors. It will not set an appropriate tool. Care should be taken to ensure the tool operation corresponds to the chosen cursor. For example, you probably do not want the pointer cursor when the tool is drawing a line. Ideally the cross hairs should be displayed. To create a non-Windows cursor, for instance a Match cursor, use the VCSetCursorEx call instead.

See Also:

VCSetCursorEx, Windows: API SetCursor