BCGControlBar Pro for MFC
virtual BOOL CBCGPOutlookBarPane::EnableContextMenuItems ( CBCGPToolbarButton pButton,
CMenu *  pPopup 
)
protectedvirtual

Override to modify a context menu displayed in customization mode.

Returns
Should return nonzero if the context menu should be displayed; otherwise 0.

Override this function to modify the framework standard context menu displayed in customization mode. The default implementation checks for customization mode (CBCGPToolBar::IsCustomizeMode) and if it is true disables all the context menu items except "Delete". Then, it just passes the input parameters to CBCGPToolBar::EnableContextMenuItems.

Parameters
pButtonA pointer to a toolbar button that was clicked.
pPopupA pointer to context menu.

Reimplemented from CBCGPToolBar.