共用方式為


CMFCVisualManager::OnDrawTabContent

The framework calls this method when it draws the contents located on the interior of an instance of the CMFCBaseTabCtrl Class.

virtual void OnDrawTabContent(
   CDC* pDC,
   CRect rectTab,
   int iTab,
   BOOL bIsActive,
   const CMFCBaseTabCtrl* pTabWnd,
   COLORREF clrText
);

Parameters

  • [in] pDC
    A pointer to a device context.

  • [in] rectTab
    A rectangle that specifies the boundaries of the tab interior.

  • [in] iTab
    The zero-based index of the tab. The framework draws the interior of this tab.

  • [in] bIsActive
    A Boolean parameter that indicates whether a tab is active.

  • [in] pTabWnd
    A pointer to the tabbed control that contains the tab being drawn.

  • [in] clrText
    The color of text on the interior of the tab.

Remarks

The interior of a tab contains the text and icons of the tab. Override this method in a derived visual manager to customize the appearance of tabs.

Requirements

Header: afxvisualmanager.h

See Also

Reference

CMFCVisualManager Class

Hierarchy Chart

CMFCBaseTabCtrl Class