TOOLBAR_INFO

Used by Editor_ToolbarOpen inline function ( EE_TOOLBAR_OPEN message) and events related to custom toolbars.

typedef struct _TOOLBAR_INFO {
	size_t cbSize;
	HWND hwndRebar;
	HWND hwndClient;
	LPCTSTR pszTitle;
	UINT nMask;
	UINT nID;
	UINT nFlags;
	UINT fStyle;
	UINT cxMinChild;
	UINT cyMinChild;
	UINT cx;
	UINT cxIdeal;
	UINT nBand;
	WORD wPlugInCmdID;
} TOOLBAR_INFO;

Members

cbSize

Size of this data structure, in bytes. Set this member to sizeof( TOOLBAR_INFO ) before sending the TOOLBAR_INFO message.

hwndRebar

EmEditor stores the handle to the rebar window when the toolbar is created inside the EE_TOOLBAR_OPEN message handler.

hwndClient

Specifies the handle to the client toolbar window.

pszTitle

Specifies a title string for the toolbar.

nMask

Specifies a combination of the following values.

TIM_REBAR

hwndRebar parameter is valid.

TIM_CLIENT

hwndClient parameter is valid.

TIM_TITLE

pszTitle parameter is valid.

TIM_ID

nID parameter is valid.

TIM_FLAGS

nFlags parameter is valid.

TIM_STYLE

fStyle parameter is valid.

TIM_MINCHILD

cxMinChild and cyMinChild parameters are valid.

TIM_CX

cx parameter is valid.

TIM_CXIDEAL

cxIdeal parameter is valid.

TIM_BAND

nBand parameter is valid.

TIM_PLUG_IN_CMD_ID

wPlugInCmdID parameter is valid.

nID

Specifies an ID for the toolbar.

nFlags

The reason that the toolbar is closed.

0

The toolbar is closed by a user.

CLOSED_FRAME_WINDOW

The frame window is being closed.

fStyle

Flags that specify the band style. Include RBBS_HIDDEN to hide the toolbar. This parameter is identical to the fStyle parameter of the REBARBANDINFO structure.

cxMinChild

Minimum width of the child window, in pixels. This parameter is identical to the cxMinChild parameter of the REBARBANDINFO structure.

cyMinChild

Minimum height of the child window, in pixels. This parameter is identical to the cyMinChild parameter of the REBARBANDINFO structure.

cx

Length of the band, in pixels. This parameter is identical to the cx parameter of the REBARBANDINFO structure.

cxIdeal

Ideal width of the band, in pixels. This parameter is identical to the cxIdeal parameter of the REBARBANDINFO structure.

nBand

Zero-based index of the location where the band will be inserted. If you set this parameter to -1, the rebar control will add the new band at the last location.

wPlugInCmdID

The command ID of the plug-in.

Version

Supported on Version 7.00 or later.