共用方式為


CMFCRibbonStatusBar::CreateEx

Creates a ribbon status bar that has an extended style.

BOOL CreateEx(
   CWnd* pParentWnd,
   DWORD dwCtrlStyle=0,
   DWORD dwStyle=WS_CHILD|WS_VISIBLE|CBRS_BOTTOM,
   UINT nID=AFX_IDW_STATUS_BAR 
);

Parameters

  • pParentWnd
    A pointer to the parent window.

  • dwCtrlStyle
    A logical OR combination of additional styles for creating the status bar object.

  • dwStyle
    The control style of the status bar.

  • nID
    The control ID of the status bar.

Return Value

TRUE if the status bar is created successfully, FALSE otherwise.

Requirements

Header: afxribbonstatusbar.h

See Also

Reference

CMFCRibbonStatusBar Class

Hierarchy Chart