Jump to content

WM MATCHMNEMONIC

From EDM2
Revision as of 23:33, 13 April 2025 by Martini (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This message is sent by the dialog box to a control window to determine whether a typed character matches a mnemonic in its window text.

Syntax

param1
    USHORT  usmatch;    /* Match character. */

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

Parameters

usmatch (USHORT) - input
Match character.
ulReserved (ULONG) - input
Reserved value, should be 0.

Returns

rc (BOOL) - returns
Match indicator.
TRUE: Mnemonic found
FALSE: Mnemonic not found, or an error occurred.

Remarks

in Button Controls

The button control window procedure responds to this message by setting rc as appropriate. If MP1 matches the button mnemonic, return rc to TRUE.

Default Dialogs

The default window procedure takes no action on this message, other than to set rc to FALSE.

in Static Controls

The default window procedure takes no action on this message, other than to set rc to FALSE.

Default Processing

The default dialog procedure takes no action on this message, other than to set rc to FALSE.

in Button Controls

The default window procedure takes no action on this message, other than to set rc to FALSE.

in Static Controls

The default window procedure takes no action on this message, other than to set rc to FALSE.

Related Messages

  • WM_MATCHMNEMONIC (in Button Controls)
  • WM_MATCHMNEMONIC (Default Dialogs)
  • WM_MATCHMNEMONIC (in Static Controls)