共用方式為


CMFCCaptionBar::OnDrawBorder

Called by the framework to draw the border of the caption bar.

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

Parameters

  • [in] pDC
    A device context that is used to display the borders.

  • [in] rect
    The bounding rectangle.

Remarks

By default, the borders have the flat style.

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

Requirements

Header: afxcaptionbar.h

See Also

Reference

CMFCCaptionBar Class

Hierarchy Chart