다음을 통해 공유


CMFCCaptionBar::OnDrawBackground

Called by the framework to fill the background of the caption bar.

virtual void OnDrawBackground(
   CDC* pDC,
   CRect rect 
);

Parameters

  • [in] pDC
    A pointer to the device context of the caption bar.

  • [in] rect
    The bounding rectangle to fill.

Remarks

The OnDrawBackground method is called when the background of the caption bar is about to be filled. The default implementation fills the background by using the CMFCCaptionBar::m_clrBarBackground color.

Override this method in a CMFCCaptionBar derived class to customize the appearance of the caption bar.

Requirements

Header: afxcaptionbar.h

See Also

Reference

CMFCCaptionBar Class

Hierarchy Chart