CMFCCaptionBar::OnDrawText

调用由框架绘制标题栏文本。

virtual void OnDrawText(
   CDC* pDC,
   CRect rect,
   const CString& strText 
);

参数

  • [in] pDC
    用于显示按钮的设备上下文的指针。

  • [in] rect
    文本的边框。

  • [in] strText
    显示的文本字符串。

备注

使用 CDC::DrawTextCMFCCaptionBar::m_clrBarText 颜色,默认实现显示文本。

重写在 CMFCCaptionBar 派生类的以下方法自定义标题栏文本的外观。

要求

标头: afxcaptionbar.h

请参见

参考

CMFCCaptionBar选件类

层次结构图