QCMINFO structure

Contains information for merging menu items into Windows Explorer menus.

Syntax

typedef struct _QCMINFO {
  HMENU               hmenu;
  UINT                indexMenu;
  UINT                idCmdFirst;
  UINT                idCmdLast;
  QCMINFO_IDMAP const *pIdMap;
} QCMINFO;

Members

hmenu

Type: HMENU

[in] The handle of the menu where the new commands are to be added.

indexMenu

Type: UINT

[in] The zero-based index where the first menu item are to be inserted.

idCmdFirst

Type: UINT

[in, out] On entry, this member contains the first available ID to be used for the context menu. On exit, it contains the last ID added plus one.

idCmdLast

Type: UINT

[in] The maximum value for a menu item identifier. The difference between the input value of idCmdFirst and idCmdLast is the maximum number of menu items that can be added.

pIdMap

Type: QCMINFO_IDMAP*

Not used, must be NULL.

Remarks

See IContextMenu::QueryContextMenu as this structure performs the same role as the parameters of that method. Note, however, that the information provided by the return value of that method is not a parallel to the information provided by the return value of an operation involving QCMINFO.

Requirements

   
Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Header shlobj_core.h (include Shlobj.h)

See Also

DFM_MERGECONTEXTMENU

DFM_MERGECONTEXTMENU_BOTTOM

DFM_MERGECONTEXTMENU_TOP

SFVM_MERGEMENU