msgs12.hlp (Topic list)
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_MENUEND (1.2)
Message Group  Overview                           Up Next Previous
────────────────────────────────────────────────────────────────────────────
 
#define INCL_WINMESSAGEMGR
 
WM_MENUEND
idMenu = SHORT1FROMMP(mp1);    /* menu identifier */
hwndMenu = LONGFROMMP(mp2);    /* menu window     */
 
The WM_MENUEND message is sent when a menu is about to terminate. This
allows the application to free any resources that were allocated to process
the message.
 
Parameter  Description
────────────────────────────────────────────────────────────────────────────
 
idMenu     Low word of mp1. Specifies the menu that is terminating.
 
hwndMenu   Low and high word of mp2. Identifies the menu window.
 
Return Value
 
An application should return zero if it processes this message.
 
See Also
 
MM_ENDMENUMODE, WM_INITMENU