MenuHelp function (commctrl.h)

Processes WM_MENUSELECT and WM_COMMAND messages and displays Help text about the current menu in the specified status window.

Syntax

void MenuHelp(
  UINT      uMsg,
  WPARAM    wParam,
  LPARAM    lParam,
  HMENU     hMainMenu,
  HINSTANCE hInst,
  HWND      hwndStatus,
  UINT      *lpwIDs
);

Parameters

uMsg

Type: UINT

Message being processed. This can be either WM_MENUSELECT or WM_COMMAND.

wParam

Type: WPARAM

wParam of the message specified in uMsg.

lParam

Type: LPARAM

lParam of the message specified in uMsg.

hMainMenu

Type: HMENU

Handle to the application's main menu.

hInst

Type: HINSTANCE

Handle to the module that contains the string resources.

hwndStatus

Type: HWND

Handle to the status window.

lpwIDs

Type: LPUINT

Pointer to an array of values that contains pairs of string resource identifiers and menu handles. The function searches the array for the handle to the selected menu and, if found, uses the corresponding resource identifier to load the appropriate Help string.

Return value

None

Remarks

The MenuHelp function is a helper function. Helper functions are available as a convenience to programming. They combine into one call a sequence of frequently used calls. You use MenuHelp to send WM_MENUSELECT and WM_COMMAND messages.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header commctrl.h
Library Comctl32.lib
DLL Comctl32.dll