◄Message Group► ◄Overview► ◄Up► ◄Next► ◄Previous► ──────────────────────────────────────────────────────────────────────────── #define INCL_WINFRAMEMGR WM_NEXTMENU hwnd = HWNDFROMMP(mp1); /* window handle */ fPrev = (BOOL) SHORT1FROMMP(mp2); /* previous flag */ The WM_NEXTMENU message is sent to the owner of a menu window to obtain the next or previous menu window. For example, this message is sent when either the beginning or the end of a menu has been reached when enumerating menus with the direction keys. The WM_NEXTMENU message is processed by frame windows by toggling between the frame's main action-bar menu and the system menu. To implement a multiple-document interface, change this frame-window action to include the active child window's system menu in the menu enumeration set. Parameter Description ──────────────────────────────────────────────────────────────────────────── hwnd Low and high word of mp1. Identifies the current menu. fPrev Low word of mp2. Specifies whether to go to the next or previous menu. When this parameter is TRUE, go to the previous menu. When it is FALSE, go to the next menu. Return Value An application should return a handle to the next or previous menu. It should return NULL if a valid handle cannot be obtained. ♦