Udostępnij za pośrednictwem


CMFCToolBar::SetLockedSizes

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

void SetLockedSizes(
   SIZE sizeButton,
   SIZE sizeImage,
   BOOL bDontScale = FALSE
);

Parameters

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

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

  • bDontScale
    Specifies whether to scale or not locked toolbar images in high DPI mode.

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

Reference

CMFCToolBar Class

Hierarchy Chart

CMFCToolBar::GetLockedImageSize

CMFCToolBar::GetButtonSize