VCGethWnd


Version:

2.0

Description:

Returns the Window handle for the given drawing.

Declaration:

 

C/C++

extern "C" long WINAPI VCGethWnd(WORLDHANDLE hW);

Delphi

function VCGethWnd(hW: Longint):Longint; stdcall;

ActiveX/COM

Function GethWnd(ByVal hW As Long) As Long

Parameters:

hW - the WORLDHANDLE for the drawing.
Return - the Window HWND for the window.

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:

VCGethWndFrame, VCGetMessageHandle, VCGetDistanceHandle, VCGetXYHandle, VCGetAngleHandle, VCGetToolbar