TB_GETIDEALSIZE message

Gets the ideal size of the toolbar.

Parameters

wParam

A **BOOL** that indicates whether to retrieve the ideal height or width of the toolbar. Use **TRUE** to retrieve the ideal height, **FALSE** to retrieve the ideal width.

lParam

Pointer to a SIZE structure that receives the height or width at which all buttons would be displayed. If wParam is TRUE, only the cy member (height) is valid. If wParam is FALSE, only the cx member (width) is valid.

Return value

Returns TRUE if successful, or FALSE otherwise.

Requirements

Requirement Value
Minimum supported client
Windows Vista [desktop apps only]
Minimum supported server
Windows Server 2003 [desktop apps only]
Header
Commctrl.h