WM MATCHMNEMONIC: Difference between revisions
Created page with "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== <pre> param1 USHORT usmatch; →Match character.: param2 ULONG ulReserved; →Reserved value, should be 0.: </pre> ==Parameters== ;''usmatch'' (USHORT) - input: Match character. ;''ulReserved'' (ULONG) - input: Reserved value, should be 0. ==Returns== ;''rc'' (BOOL) - returns: Match indicator. :TRUE: Mne..." |
No edit summary |
||
Line 18: | Line 18: | ||
:TRUE: Mnemonic found | :TRUE: Mnemonic found | ||
:FALSE: Mnemonic not found, or an error occurred. | :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== | ==Default Processing== | ||
The default dialog procedure takes no action on this message, other than to set ''rc'' to FALSE. | 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== | ==Related Messages== |
Latest revision as of 23:33, 13 April 2025
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)