windows_programming_notes.nbk: Home | Index | Next Page: WM_NOTIFY | Previous Page: WM_NEXTDLGCTL


 WM_NEXTMENU

The WM_NEXTMENU message is sent to an application when the right or left arrow key is used to switch between the menu bar and the system menu.

A window receives this message through its WindowProc function.

    LRESULT CALLBACK WindowProc(
      HWND hwnd,       // handle to window
      WM_NEXTMENU,     // message to send
      WPARAM wParam,   // virtual-key code
      LPARAM lParam    // menu information (LPMDINEXTMENU)
    );

Parameters

Remarks

In responding to this message, the application can specify the menu to switch to in the hmenuNext member of MDINEXTMENU and the window to receive the menu notification messages in the hwndNext member of the MDINEXTMENU structure. You must set both members for the changes to take effect (they are initially NULL).

Requirements

  Windows NT/2000 or later: Requires Windows NT 4.0 or later.
  Windows 95/98/Me: Requires Windows 95 or later.
  Header: Declared in Winuser.h; include Windows.h.

windows_programming_notes.nbk: Home | Index | Next Page: WM_NOTIFY | Previous Page: WM_NEXTDLGCTL


Notebook exported on Monday, 7 July 2008, 18:56:50 PM Eastern Daylight Time