MenuHelp function

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,
  LPUINT 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

No return value.

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

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Commctrl.h

Library

Comctl32.lib

DLL

Comctl32.dll

 

 

Community Additions

ADD
Show:
© 2015 Microsoft