Partager via


Menu Messages (Compact 2013)

3/28/2014

The following table shows the menu messages, with a description of the purpose of each.

Programming element

Description

WM_COMMAND

This message is sent when the user selects a command item from a menu, when a control sends a message to its parent window, or when an accelerator keystroke is translated.

WM_CONTEXTMENU

This message notifies a window that the user clicked the right mouse button (right-clicked) in the window.

WM_ENTERMENULOOP

This message informs an application's main window procedure that a menu modal loop has been entered.

WM_EXITMENULOOP

This message informs an application's main window procedure that a menu modal loop has been exited.

See Also

Reference

Menu Reference