共用方式為


CMFCCaptionBar::OnDrawButton

呼叫框架繪製標題列按鈕。

virtual void OnDrawButton(
   CDC* pDC,
   CRect rect,
   const CString& strButton,
   BOOL bEnabled 
);

參數

  • [in] pDC
    要在中顯示按鈕的裝置內容的指標。

  • [in] rect
    按鈕的週框 (Bounding Rectangle)。

  • [in] strButton
    按鈕的文字標籤。

  • [in] bEnabled
    TRUE ,則按鈕為啟用狀態,否則 FALSE 。

備註

覆寫 CMFCCaptionBar 衍生類別的這個方法來自訂標題列中按鈕的外觀。

需求

標題: afxcaptionbar.h

請參閱

參考

CMFCCaptionBar 類別

階層架構圖表