Condividi tramite


CMFCToolBar::SetSizes

Specifies the sizes of buttons and images on all toolbars.

static void __stdcall SetSizes(
   SIZE sizeButton,
   SIZE sizeImage 
);

Parameters

  • [in] sizeButton
    The size of toolbar buttons, in pixels.

  • [in] sizeImage
    The size of toolbar button images, in pixels.

Remarks

The default size of toolbar buttons is 23x22 pixels. The default size of toolbar button images is 16x15 pixels.

Call the CMFCToolBar::GetImageSize method to retrieve the size of toolbar button images. Call the CMFCToolBar::GetButtonSize method to retrieve the size of toolbar buttons.

Requirements

Header: afxtoolbar.h

See Also

Reference

CMFCToolBar Class

Hierarchy Chart

CMFCToolBar::GetImageSize

CMFCToolBar::GetButtonSize