共用方式為


CMFCBaseTabCtrl::SetTabBkColor

Sets the background color for the specified tab.

virtual BOOL SetTabBkColor(
   int iTab,
   COLORREF color = (COLORREF)-1
);

Parameters

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

  • [in] color
    The color to set.

Return Value

TRUE if successful; FALSE otherwise.

Requirements

Header: afxbasetabctrl.h

See Also

Reference

CMFCBaseTabCtrl Class

Hierarchy Chart