Share via


CMFCVisualManager::OnDrawTab

The framework calls this method when it draws the tabs for a CMFCBaseTabCtrl object.

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

Parameters

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

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

  • [in] iTab
    The index of the tab that the framework draws.

  • [in] bIsActive
    A Boolean parameter that specifies whether the tab is active.

  • [in] pTabWnd
    A pointer to a CMFCBaseTabCtrl object. The framework draws this tab control.

Remarks

A CMFCBaseTabCtrl object calls this method when it processes the WM_PAINT message.

Override this method in a derived class to customize the look of tabs.

Requirements

Header: afxvisualmanager.h

See Also

Reference

CMFCVisualManager Class

Hierarchy Chart

CMFCBaseTabCtrl Class