VCGetMessageHandle
VCSetMessageHandle


Version:

1.2

Description:

Specifies the location by hWnd where Visual CADD™ is to place the message string for each command.

Declaration:

 

C/C++

extern "C" long WINAPI VCGetMessageHandle(void);
extern "C" void WINAPI VCSetMessageHandle(HWND hWnd_);

Delphi

function VCGetMessageHandle: Longint; stdcall;
procedure VCSetMessageHandle(hWnd_: Longint); stdcall;

ActiveX/COM

Function GetMessageHandle() As Long
Sub SetMessageHandle(ByVal hWnd_ 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 include 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, VCGetXYHandle, VCGetAngleHandle, VCGetToolbar