Partager via


CMFCVisualManager::OnDrawPaneCaption

The framework calls this method when it draws a caption for an instance of the CDockablePane Class.

virtual COLORREF OnDrawPaneCaption(
   CDC* pDC,
   CDockablePane* pBar,
   BOOL bActive,
   CRect rectCaption,
   CRect rectButtons
);

Parameters

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

  • [in] pBar
    A pointer to a CDockablePane object. The framework draws the caption for this pane.

  • [in] bActive
    A Boolean parameter that indicates whether the control bar is active.

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

  • [in] rectButtons
    A rectangle that specifies the boundaries of the caption buttons.

Return Value

A COLORREF parameter that indicates the text color of the caption.

Remarks

Override this method in a derived visual manager to customize the appearance of pane captions.

Requirements

Header: afxvisualmanager.h

See Also

Reference

CMFCVisualManager Class

Hierarchy Chart

CDockablePane Class