共用方式為


CMFCRibbonStatusBar::OnDrawInformation

Displays the string that appears on the ribbon status bar when the information mode is enabled.

virtual void OnDrawInformation(
   CDC* pDC,
   CString& strInfo,
   CRect rectInfo 
);

Parameters

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

  • [in] strInfo
    The information string.

  • [in] rectInfo
    The bounding rectangle.

Remarks

Override this method in a derived class if you want to customize the appearance of the information string on the status bar. Use the CMFCRibbonStatusBar::SetInformation method to put the status bar in information mode. In this mode, the status bar hides all panes and displays the information string specified by strInfo.

Requirements

Header: afxribbonstatusbar.h

See Also

Reference

CMFCRibbonStatusBar Class

Hierarchy Chart