Export (0) Print
Expand All
Expand Minimize

SetMenuContextHelpId function

Associates a Help context identifier with a menu.

Syntax


BOOL SetMenuContextHelpId(
  HMENU hmenu,
  DWORD dwContextHelpId
);

Parameters

hmenu

Type: HMENU

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

dwContextHelpId

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]

Header

Winuser.h

Library

User32.lib

DLL

User32.dll

See also

GetMenuContextHelpId

 

 

Community Additions

ADD
Show:
© 2015 Microsoft