Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize


Assigns an application ribbon button to the ribbon bar.

void SetApplicationButton(
   CMFCRibbonApplicationButton* pButton,
   CSize sizeButton 

[in] pButton

A pointer to the application ribbon button.

[in] sizeButton

The size of the application ribbon button.

The application ribbon button is a large rounded button located at the upper-left corner of Ribbon control.

The following example demonstrates how to use the SetApplicationButton method in the CMFCRibbonBar class.

	// Init main button: 
	// CMFCRibbonApplicationButton m_MainButton

	// CMFCRibbonBar m_wndRibbonBar
	m_wndRibbonBar.SetApplicationButton(&m_MainButton, CSize (45, 45));

Header: afxribbonbar.h

© 2015 Microsoft