CToolBarCtrl::SetButtonSize

BOOL SetButtonSize( CSize size );

Return Value

Nonzero if successful; otherwise zero.

Parameters

size

Width and height, in pixels, of the buttons.

Remarks

Call this function to set the size of the buttons in the toolbar control. The button size must always be at least as large as the bitmap size it encloses.

This function must be called only before adding any bitmaps to the toolbar. If the application does not explicitly set the button size, it defaults to 24 by 22 pixels.

CToolBarCtrl OverviewClass MembersHierarchy Chart

See Also   CToolBarCtrl::SetBitmapSize, CToolBarCtrl::GetItemRect