HH_GET_WIN_HANDLE
Retrieves the handle of a window type
Argument | Description |
---|---|
hwndCaller | Ignored |
pszFile | HTML Help URL: Compiled help (.chm) file or nil for a global window |
uCommand | HH_GET_WIN_HANDLE |
dwData | Name of the window type |
Return value:
On success (if the specified window exists) the return value is the handle of that window.
On failure the return value is 0.
Description:
The HH_GET_WIN_HANDLE command returns the handle to the window, defined by the window
type, specified by the dwData parameter or 0 if the window does not exist. Note that even
if the window is defined in either the compiled help (.chm) file or by using the
HH_SET_WIN_TYPE command, if the window hasn't actually been created yet (ie a topic was
shown using the window) the HH_GET_WIN_HANDLE call naturally will fail. A window
definition is not a window, just like a class in not an object!
Example:
HtmlHelp(0, PChar('JediHtmlHelp.chm'), HH_GET_WIN_HANDLE, DWORD(PChar('Main')));