CToolBar::SetSizes

void SetSizes( SIZE sizeButton, SIZE sizeImage );

Parameters

sizeButton

The size in pixels of each button.

sizeImage

The size in pixels of each image.

Remarks

Call this member function to set the toolbar's buttons to the size, in pixels, specified in sizeButton. The sizeImage parameter must contain the size, in pixels, of the images in the toolbar's bitmap. The dimensions in sizeButton must be sufficient to hold the image plus 7 pixels extra in width and 6 pixels extra in height. This function also sets the toolbar height to fit the buttons.

Call this member function only for toolbars that do not follow Windows Interface Guidelines for Software Design recommendations for button and image sizes.

CToolBar OverviewClass MembersHierarchy Chart

See Also   CToolBar::LoadBitmap, CToolBar::SetButtonInfo, CToolBar::SetButtons,