Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

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

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.