Nota
L'accesso a questa pagina richiede l'autorizzazione. È possibile provare ad accedere o modificare le directory.
L'accesso a questa pagina richiede l'autorizzazione. È possibile provare a modificare le directory.
Sets the quick access toolbar to the default state.
void SetQuickAccessDefaultState(
const CMFCRibbonQuickAccessToolBarDefaultState& state
);
Parameters
- [in] state
The quick access toolbar default state.
Remarks
The quick access toolbar state includes a list of commands and their visibility.
Example
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);
Requirements
Header: afxribbonbar.h