Share via


CMFCToolBar::SetLockedSizes

Sets the sizes of locked buttons and locked images on the toolbar.

void SetLockedSizes(
   SIZE sizeButton,
   SIZE sizeImage 
);

Parameters

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

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

Remarks

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

Call the CMFCToolBar::GetLockedImageSize method to retrieve the size of locked images. Call the CMFCToolBar::GetButtonSize method to retrieve the size of locked toolbar buttons.

Requirements

Header: afxtoolbar.h

See Also

Concepts

MFC Hierarchy Chart

Reference

CMFCToolBar Class

CMFCToolBar::GetLockedImageSize

CMFCToolBar::GetButtonSize