MENUGETOBJECTINFO structure

Contains information about the menu that the mouse cursor is on.

Syntax

typedef struct tagMENUGETOBJECTINFO {
  DWORD dwFlags;
  UINT  uPos;
  HMENU hmenu;
  PVOID riid;
  PVOID pvObj;
} MENUGETOBJECTINFO, *PMENUGETOBJECTINFO;

Members

dwFlags

Type: DWORD

The position of the mouse cursor with respect to the item indicated by uPos. It is a bitmask of the following values:

Value Meaning
MNGOF_BOTTOMGAP
0x00000002
The mouse is on the bottom of the item indicated by uPos.
MNGOF_TOPGAP
0x00000001
The mouse is on the top of the item indicated by uPos.
 

If neither MNGOF_BOTTOMGAP nor MNGOF_TOPGAP is set, then the mouse is directly on the item indicated by uPos.

uPos

Type: UINT

The position of the item the mouse cursor is on.

hmenu

Type: HMENU

A handle to the menu the mouse cursor is on.

riid

Type: PVOID

The identifier of the requested interface. Currently it can only be IDropTarget.

pvObj

Type: PVOID

A pointer to the interface corresponding to the riid member. This pointer is to be returned by the application when processing the message.

Remarks

The MENUGETOBJECTINFO structure is used only in drag-and-drop menus. When the WM_MENUGETOBJECT message is sent, lParam is a pointer to this structure.

To create a drag-and-drop menu, call SetMenuInfo with MNS_DRAGDROP set.

Requirements

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

See Also

Conceptual

Menus

Reference

SetMenuInfo