共用方式為


CMFCBaseTabCtrl::SetActiveTabColor

Sets the background color for the active tab.

virtual void SetActiveTabColor(
   COLORREF clr
);

Parameters

  • [in] clr
    Specifies the new background color.

Remarks

The framework obtains the default background color for active tabs from the GetSysColormethod.

Requirements

Header: afxbasetabctrl.h

See Also

Reference

CMFCBaseTabCtrl Class

Hierarchy Chart

CMFCBaseTabCtrl::GetActiveTabColor