Partager via


CMFCToolBar::SetMenuSizes

Sets the size of toolbar menu buttons and their images.

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

Parameters

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

  • [in] sizeImage
    Specifies the size of toolbar images, in pixels.

Remarks

By default, menu buttons and their images have an undefined size.

Call the CMFCToolBar::GetMenuButtonSize method to determine the size of menu buttons and the CMFCToolBar::GetMenuImageSize method to determine the size of menu button images.

See the IEDemo and MSMoneyDemo samples for examples that use this method.

Requirements

Header: afxtoolbar.h

See Also

Reference

CMFCToolBar Class

Hierarchy Chart

CMFCToolBar::GetMenuButtonSize

CMFCToolBar::GetMenuImageSize