Jump to content

MM ENDMENUMODE

From EDM2
Revision as of 18:57, 25 April 2025 by Martini (talk | contribs) (Created page with "This message is sent to a menu control to terminate menu selection. ==Syntax== <pre> param1 USHORT usdismiss; Dismiss menu indicator.: param2 ULONG ulReserved; Reserved value, should be 0.: </pre> ==Parameters== ;usdismiss (USHORT) - input: Dismiss menu indicator. ::TRUE: Dismiss the submenu or subdialog window. ::FALSE: Do not dismiss the submenu or subdialog window. ;ulReserved (ULONG) - input: Reserved value, should be 0. ==Returns== ;ulReserved...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This message is sent to a menu control to terminate menu selection.

Syntax

param1
USHORT usdismiss;  /* Dismiss menu indicator. */

param2
ULONG ulReserved; /* Reserved value, should be 0. */

Parameters

usdismiss (USHORT) - input
Dismiss menu indicator.
TRUE: Dismiss the submenu or subdialog window.
FALSE: Do not dismiss the submenu or subdialog window.
ulReserved (ULONG) - input
Reserved value, should be 0.

Returns

ulReserved (ULONG) - return
Reserved value, should be 0.

Remarks=

The menu control window procedure responds to this message by terminating menu selection.

Note
It must be sent, not posted, to the menu control.

Default Processing

The default window procedure does not expect to receive this message and, therefore, takes no action on it, other than to set ulReserved to the default value of 0.