SetMenuContextHelpId function (winuser.h)
Associates a Help context identifier with a menu.
C++
BOOL SetMenuContextHelpId(
HMENU unnamedParam1,
DWORD unnamedParam2
);
unnamedParam1
Type: HMENU
A handle to the menu with which to associate the Help context identifier.
unnamedParam2
Type: DWORD
The help context identifier.
Type: BOOL
Returns nonzero if successful, or zero otherwise.
To retrieve extended error information, call GetLastError.
All items in the menu share this identifier. Help context identifiers can't be attached to individual menu items.
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 |