Partager via


CMFCBaseTabCtrl::SetTabIconOnly

Enables displaying only an icon (and no text label) on a specific tab.

virtual BOOL SetTabIconOnly(
   int iTab,
   BOOL bIconOnly = TRUE,
   BOOL bShowTooltipAlways = FALSE
);

Parameters

  • [in] iTab
    The zero-based index of the tab to change.

  • [in] bIconOnly
    A Boolean parameter that determines whether to display only icons.

  • [in] bShowTooltipAlways
    A Boolean parameter that determines whether the framework shows tooltips for a tab label that displays only icons.

Return Value

TRUE if successful; otherwise FALSE.

Remarks

By default, a tab control displays the icon and text label for each tab.

Requirements

Header: afxbasetabctrl.h

See Also

Reference

CMFCBaseTabCtrl Class

Hierarchy Chart