Compartilhar via


CMFCRibbonBar::Create

Creates a window for the ribbon bar.

BOOL Create(
   CWnd* pParentWnd,
   DWORD dwStyle = WS_CHILD | WS_VISIBLE | CBRS_TOP,
   UINT nID = AFX_IDW_RIBBON_BAR 
);

Parameters

  • [in] pParentWnd
    Pointer to the parent window for the ribbon bar.

  • [in] dwStyle
    A logical combination of styles for the new window.

  • [in] nID
    ID of the new window.

Return Value

TRUE if the window was created; otherwise FALSE.

Example

The following example demonstrates how to use the Create method of the CMFCRibbonBar class.

    // CMFCRibbonBar m_wndRibbonBar
    m_wndRibbonBar.Create(this,WS_CHILD|CBRS_TOP);

Requirements

Header: afxribbonbar.h

See Also

Reference

CMFCRibbonBar Class

Hierarchy Chart