Share

CAdUiPaletteSet::AddContextMenuItems

C++

virtual BOOL AddContextMenuItems(
    CMenu * pMenu, 
    int nHitFlag, 
    int nRightClkTab = 0
);

Description

This function is called by the palette set before it displays its context menu.

Overriding this function allows derived classes to make adjustments to the menu that the base class context menu implementation will display. The override returns a value of false to indicate that the base class implementation of the context menu should not be used, in which case desired derived class behavior is implemented within the override.To proceed with the base class implementation, the function should return true.

Note

The menu displayed when clicking on the title bar properties button is considered a context menu for the palette set, and makes use of this method.

Parameters

Parameters Description
pMenu Pointer to the menu to be used
nHitFlag Location within the palette set of the event that triggered the context menu; one of the CAdUiPaletteSet hit-test constants
nRightClkTab Palette tab of the tab for which this context menu is being displayed, if nHitFlag is ADUI_HT_TABS

Links

CAdUiPaletteSet Class

Was this information helpful?