CMFCToolBar::EnableTextLabels

Enables or disables text labels under toolbar button images.

void EnableTextLabels(
   BOOL bEnable=TRUE 
);

Parameters

  • bEnable
    TRUE if text labels appear under toolbar button images; otherwise FALSE.

Remarks

If text labels are enabled, all buttons on the toolbar are enlarged to provide space for the labels to be displayed under the images. The customization dialog box has a Show text label check-box on the Toolbars page. When the user selects a toolbar and checks this option, the framework calls EnableTextLabels for the selected toolbar. You can disable the check-box for an object derived from CMFCToolBar Class by returning FALSE from CMFCToolBar::AllowChangeTextLabels .

Requirements

Header: afxtoolbar.h

See Also

Reference

CMFCToolBar Class

Hierarchy Chart