CMFCOutlookBarPane::EnableContextMenuItems
Specifies which shortcut menu items are displayed in customization mode.
virtual BOOL EnableContextMenuItems(
CMFCToolBarButton* pButton,
CMenu* pPopup
);
Parameters
[in] pButton
A pointer to a toolbar button that a user clicked.[in] pPopup
A pointer to the shortcut menu.
Return Value
Returns TRUE if the shortcut menu should be displayed; otherwise FALSE.
Remarks
Override this method to modify the framework standard shortcut menu that the framework displays in customization mode.
The default implementation checks the customization mode (CMFCToolBar::IsCustomizeMode) and if it is set to TRUE, disables all the shortcut menu items except Delete. Then, it just passes the input parameters to CMFCToolBar::EnableContextMenuItems.
Notes
Context menu is a synonym for shortcut menu.
Requirements
Header: afxoutlookbarpane.h