Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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.
Note
Context menu is a synonym for shortcut menu.
Requirements
Header: afxoutlookbarpane.h