Dela via


CMFCVisualManager::OnEraseTabsFrame

The framework calls this method when it erases a frame on a CMFCBaseTabCtrl Class.

virtual BOOL OnEraseTabsFrame(
   CDC* pDC,
   CRect rect,
   const CMFCBaseTabCtrl* pTabWnd
);

Parameters

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

  • [in] rect
    A rectangle that specifies the boundaries of the tab window.

  • [in] pTabWnd
    A pointer to a tab window. The framework erases a frame for this CMFCBaseTabCtrl.

Return Value

TRUE if the method is successful; FALSE otherwise.

Remarks

This method fills the area indicated by rect with the background color of the active tab. It is called when a CMFCBaseTabCtrl object processes a WM_PAINT message and erases a tab frame.

Requirements

Header: afxvisualmanager.h

See Also

Concepts

MFC Hierarchy Chart

Reference

CMFCVisualManager Class