Επεξεργασία

Κοινή χρήση μέσω


SetMenuContextHelpId function (winuser.h)

Associates a Help context identifier with a menu.

Syntax

BOOL SetMenuContextHelpId(
  HMENU unnamedParam1,
  DWORD unnamedParam2
);

Parameters

unnamedParam1

Type: HMENU

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

unnamedParam2

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

Requirement Value
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