Share via


CTabbedPane::EnableTabAutoColor

Enables or disables automatic coloring of tabs.

static void EnableTabAutoColor(
    BOOL bEnable = TRUE
);

Parameters

  • [in] bEnable
    TRUE to enable auto coloring of tabs; otherwise, FALSE.

Remarks

Use this static method to enable or disable automatic coloring of tabs in all tabbed panes in the application. When this feature is enabled, each tab is filled by its own color. You can find the list of colors that are used to color the tabs by calling the CMFCBaseTabCtrl::GetAutoColors method.

You can specify the list of colors that will be used for tabs by calling CTabbedPane::SetTabAutoColors.

By default, this option is disabled.

Requirements

Header: afxTabbedPane.h

See Also

Reference

CTabbedPane Class

Hierarchy Chart