Share

CAcTcUiCatalogView::AddContextMenuItems

C++

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

Description

Derived classes can override this method to customize the context menu that is displayed by right-clicking on the view. The right-click can be on an item or on the background. The passed menu is pre-filled with standard options. Derived classes can add new options or remove standard options.

See HitTest() for the hit flag values.

Return true to display the customized context menu and false to suppress the context menu.

Parameters

Parameters Description
pMenu Input context menu to be displayed, pre-filled with the standard options
nHitFlag Input one or more hit flag values indicating where the right-click occurred

Links

CAcTcUiCatalogView Class

Was this information helpful?