VCGetXYHandle
VCSetXYHandle


Version:

2.0

Description:

The XY handle displays the cursor coordinates in the interface.

Declaration:

 

C/C++

extern "C" long WINAPI VCGetXYHandle();
extern "C" void WINAPI VCSetXYHandle(HWND hWnd);

Delphi

function VCGetXYHandle:Longint; stdcall;
procedure VCSetXYHandle(hWnd: Smallint); stdcall;

ActiveX/COM

Function GetXYHandle() As Long
Sub SetXYHandle(ByVal n As Long)

Parameters:

hWnd - the HWND handle for the object to be used as the message area.

Notes:

All the Windows HWND in the Visual CADD™ interface are available through the API. This includes the global values for the frame (VCGethWndFrame), the drawing window (VCGethWnd), and the tool palette, speedbar and status bar (VCGetToolbar). In addition, key display control HWND are also available for displaying angle, (VCGetAngleHandle), distances (VCGetDistanceHandle), message prompts (VCGetMessageHandle), and coordinates (VCGetXYHandle).

The HWND can be used by applications to display custom messages or used in other Window API methods. VCGethWnd returns the handle for individual MDI Windows based on the drawing index while VCGethWndFrame returns the handle for the entire Visual CADD™ frame.

See Also:

VCGethWnd, VCGethWndFrame, VCGetMessageHandle, VCGetDistanceHandle, VCGetAngleHandle, VCGetToolbar