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

CMFCRibbonBar::SetQuickAccessDefaultState

Sets the quick access toolbar to the default state.

void SetQuickAccessDefaultState(
   const CMFCRibbonQuickAccessToolBarDefaultState& state 
);
[in] state

The quick access toolbar default state.

The quick access toolbar state includes a list of commands and their visibility.

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

	CMFCRibbonQuickAccessToolBarDefaultState* qaToolBarState = 
		new CMFCRibbonQuickAccessToolBarDefaultState();
	qaToolBarState->AddCommand(ID_FILE_NEW, true);
	qaToolBarState->AddCommand(ID_FILE_OPEN, true);
	// CMFCRibbonBar m_wndRibbonBar
	m_wndRibbonBar.SetQuickAccessDefaultState(*qaToolBarState);

Header: afxribbonbar.h

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