VCGetDistanceHandle
VCSetDistanceHandle


Version:

2.0

Description:

Specifies to which window handle is to display the current distance display values from Visual CADD™.

Declaration:

 

C/C++

extern "C" long WINAPI VCGetDistanceHandle(); 
extern "C" void WINAPI VCSetDistanceHandle(long hWnd_);

Delphi

function VCGetDistanceHandle:Longint; stdcall; 
procedure VCSetDistanceHandle(hWnd_: Longint); stdcall;

ActiveX/COM

Function GetDistanceHandle() As Long
Sub SetDistanceHandle(ByVal n As Long)

Parameters:

hWnd - the Windows handle to display the distance entries.

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, VCGetXYHandle, VCGetAngleHandle, VCGetToolbar