Partager via


CSnapInItemImpl::AddMenuItems

This method implements the Win32 function IExtendContextMenu::AddMenuItems.

AddMenuItems(
   LPCONTEXTMENUCALLBACK piCallback,
   long *pInsertionAllowed,
   DATA_OBJECT_TYPES type 
);

Parameters

  • piCallback
    [in] Pointer to the IContextMenuCallback that can add items to the context menu.

  • pInsertionAllowed
    [in, out] Identifies Microsoft Management Console (MMC)-defined, menu-item insertion points that can be used. This can be a combination of the following flags:

    • CCM_INSERTIONALLOWED_TOP   Items can be inserted at the top of a context menu.

    • CCM_INSERTIONALLOWED_NEW   Items can be inserted in the Create New submenu.

    • CCM_INSERTIONALLOWED_TASK   Items can be inserted in the Task submenu.

    • CCM_INSERTIONALLOWED_VIEW   Items can be inserted in the toolbar view menu or in the View submenu of the result pane context menu.

  • type
    [in] Specifies the type of object. It can have one of the following values:

    • CCT_SCOPE   Data object for scope pane context.

    • CCT_RESULT   Data object for result pane context.

    • CCT_SNAPIN_MANAGER   Data object for snap-in manager context.

    • CCT_UNINITIALIZED   Data object has an invalid type.

Requirements

Header: atlsnap.h

See Also

Reference

CSnapInItemImpl Class

Other Resources

CSnapInItemImpl Members