Vcl.Forms.TApplication.UnhookMainWindow
Delphi
procedure UnhookMainWindow(Hook: TWindowHook);
C++
void __fastcall UnhookMainWindow(TWindowHook Hook);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | Vcl.Forms.pas Vcl.Forms.hpp |
Vcl.Forms | TApplication |
Description
Releases a dialog procedure previously hooked by a call to the HookMainWindow method.
Use UnhookMainWindow to release the hooked window. Specify the dialog procedure as the value of the Hook parameter.
The TWindowHook type is the parameter type used for UnhookMainWindow. It is a method-pointer type used for the dialog-procedures of non-VCL dialog boxes. The dialog procedure is similar to a window procedure for a window, in that it processes messages for the dialog box, but its syntax is somewhat different.
For more information about Windows hooks see the SetWindowsEx and UnhookWindowsEx functions in the Windows Help File.