Upravit

Sdílet prostřednictvím


WM_MENUDRAG message

Sent to the owner of a drag-and-drop menu when the user drags a menu item.

#define WM_MENUDRAG                     0x0123

Parameters

wParam

The position of the item where the drag operation began.

lParam

A handle to the menu containing the item.

Return value

The application should return one of the following values.

Return code/value Description
MND_CONTINUE
0
Menu should remain active. If the mouse is released, it should be ignored.
MND_ENDMENU
1
Menu should be ended.

Remarks

The application can call the DoDragDrop function in response to this message.

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

Requirements

Requirement Value
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

Reference

SetMenuInfo

Conceptual

Menus