Contents Index Topic Contents | ||
Previous Topic: SetMenuContextHelpId Next Topic: SHAddToRecentDocs |
SetWindowContextHelpId
Associates a Help context identifier with the specified window.
Syntax
BOOL SetWindowContextHelpId( HWND hwnd, DWORD dwContextHelpId );Parameters
- hwnd
- Handle to the window with which to associate the Help context identifier.
- dwContextHelpId
- Help context identifier.
Return Values
Returns nonzero if successful, or zero otherwise.
To get extended error information, call GetLastError.
Remarks
If a child window does not have a Help context identifier, it inherits the identifier of its parent window. Likewise, if an owned window does not have a Help context identifier, it inherits the identifier of its owner window. This inheritance of Help context identifiers allows an application to set just one identifier for a dialog box and all of its controls.
See Also
Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.