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.

Community Additions

ADD
Show: