Partager via


CMFCVisualManager::OnDrawCaptionBarBorder

The framework calls this method when it draws the border of a CMFCCaptionBar Class object.

virtual void OnDrawCaptionBarBorder(
   CDC* pDC,
   CMFCCaptionBar* pBar,
   CRect rect,
   COLORREF clrBarBorder,
   BOOL bFlatBorder 
);

Parameters

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

  • [in] pBar
    A pointer to a CMFCCaptionBar object. The framework draws this caption bar.

  • [in] rect
    A rectangle that specifies the boundaries of the caption bar.

  • [in] clrBarBorder
    The color of the border.

  • [in] bFlatBorder
    A Boolean parameter that specifies whether the border has a flat, 2D appearance.

Remarks

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

Requirements

Header: afxvisualmanager.h

See Also

Reference

CMFCVisualManager Class

Hierarchy Chart

CMFCCaptionBar Class