Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

CMFCRibbonBar::Create

Updated: September 2008

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 
);

[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.

TRUE if the window was created; otherwise FALSE.

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);

Header: afxribbonbar.h

Date

History

Reason

September 2008

Updated whole topic.

Information enhancement.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

Show:
© 2014 Microsoft