The SetWindowContextHelpId function associates a help context identifier with the specified window.
BOOL SetWindowContextHelpId(
HWND hwnd, |
|
DWORD dwContextHelpId | |
); |
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero. To get extended error information, call GetLastError.
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.