Important Notice
The pages on this site contain documentation for very old MS-DOS software,
purely for historical purposes.
If you're looking for up-to-date documentation, particularly for programming,
you should not rely on the information found here, as it will be woefully
out of date.
WM_MENUSELECT (1.2)
◄Message Group► ◄Overview► ◄Up► ◄Next► ◄Previous►
────────────────────────────────────────────────────────────────────────────
#define INCL_WINMESSAGEMGR
WM_MENUSELECT
idItem = SHORT1FROMMP(mp1); /* item identifier */
fPost = (BOOL) SHORT2FROMMP(mp1); /* post flag */
hwndMenu = LONGFROMMP(mp2); /* menu window */
The WM_MENUSELECT message is sent to the owner of a menu window when a menu
item is selected and when the menu window is dismissed.
Parameter Description
────────────────────────────────────────────────────────────────────────────
idItem Low word of mp1. Specifies the selected menu item. This parameter
is -1 when the menu window is dismissed.
fPost High word of mp1. Indicates whether a WM_COMMAND, WM_HELP, or
WM_SYSCOMMAND message is to be posted. A value of TRUE means that
a message will be posted; FALSE means that it will not. An
application can prevent the posting of a message by returning
FALSE after processing this message.
hwndMenu Low and high words of mp2. This parameter identifies the menu
window.
Return Value
If the fPost parameter is FALSE, the return value is ignored. If fPost is
TRUE, an application should return TRUE to post a WM_COMMAND, WM_HELP, or
WM_SYSCOMMAND message and dismiss the menu. An application should return
FALSE to prevent posting a message and to prevent the menu from being
dismissed.
See Also
WM_COMMAND, WM_HELP, WM_SYSCOMMAND
♦