Dela via


CMFCVisualManager::GetTabFrameColors

The framework calls this function when it has to retrieve the set of colors for drawing a tab window.

virtual void GetTabFrameColors(
   const CMFCBaseTabCtrl* pTabWnd,
   COLORREF& clrDark,
   COLORREF& clrBlack,
   COLORREF& clrHighlight,
   COLORREF& clrFace,
   COLORREF& clrDarkShadow,
   COLORREF& clrLight,
   CBrush*& pbrFace,
   CBrush*& pbrBlack 
);

Parameters

  • [in] pTabWnd
    A pointer to the tabbed window where the frame is drawing a tab.

  • [out] clrDark
    A reference to a COLORREF parameter where this method stores the color for the dark border of a tab.

  • [out] clrBlack
    A reference to a COLORREF parameter where this method stores the color for the border of the tab window. The default color for the border is black.

  • [out] clrHighlight
    A reference to a COLORREF parameter where this method stores the color for the highlight state of the tab window.

  • [out] clrFace
    A reference to a COLORREF parameter where this method stores the color for face of the tab window.

  • [out] clrDarkShadow
    A reference to a COLORREF parameter where this method stores the color for the shadow of the tab window.

  • [out] clrLight
    A reference to a COLORREF parameter where this method stores the color for the light edge of the tab window.

  • [out] pbrFace
    A pointer to a reference for a brush. This method stores the brush that it uses to fill the face of the tab window in this parameter.

  • [out] pbrBlack
    A pointer to a reference for a brush. This method stores the brush it uses to fill the black edge of the tab window in this parameter.

Remarks

Override this function in a derived class if you want to customize the set of colors that the framework uses when it draws a tab window.

Requirements

Header: afxvisualmanager.h

See Also

Concepts

MFC Hierarchy Chart

Reference

CMFCVisualManager Class

CMFCBaseTabCtrl Class