SetMenuContextHelpId function

Associates a Help context identifier with a menu.

Syntax

BOOL SetMenuContextHelpId(
  HMENU ,
  DWORD 
);

Parameters

arg1

Type: HMENU

A handle to the menu with which to associate the Help context identifier.

arg2

Type: DWORD

The help context identifier.

Return Value

Type: BOOL

Returns nonzero if successful, or zero otherwise.

To retrieve extended error information, call GetLastError.

Remarks

All items in the menu share this identifier. Help context identifiers can't be attached to individual menu items.

Requirements

   
Minimum supported client Windows XP [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header winuser.h
Library User32.lib
DLL User32.dll

See Also

GetMenuContextHelpId