Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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/valueDescription
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

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

 

 

Show:
© 2017 Microsoft