VCGetToolbar


Version:

2.0

Description:

Retrieves the HWND for the input toolbar index. 

Declaration:

 

C/C++

extern "C" HWND WINAPI VCGetToolbar(short i);

Delphi

function VCGetToolbar(i: Smallint): Longint; stdcall;

ActiveX/COM

Function GetToolbar(ByVal i As Integer) As Long

Parameters:

i - the toolbar index.
0 - TBNONE: no toolbar.
1 - TBTOP:the main speedbar.
2 - TBLEFT: the tool palette.
3 - TBRIGHT: not used.
4 - TBBOTTOM: the status bar.

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