RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
IHelpSystem.Hook Method

Do a WinHelp-style Help request.

Pascal
function Hook(Handle: Longint; const HelpFile: string; Comand: Word; Data: Longint): Boolean;
C++
__fastcall Boolean Hook(Longint Handle, const AnsiString HelpFile, Word Comand, Longint Data);

Hook accepts Help requests that uses the same conventions as the Microsoft Windows WinHelp API. Hook should only be called for requests that cannot be translated into calls to ShowContextHelp, ShowHelp, ShowTableOfContents, or ShowTopicHelp.

Note: If the Help System is unable to decipher the Help request, it looks for a Viewer that implements ISpecialWinHelpViewer. If the application has registered such a viewer, the request succeeds if the Viewer is able to handle it. Otherwise the request fails.
 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!