RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TApplication.UnhookMainWindow Method

Releases a dialog procedure previously hooked by a call to the HookMainWindow method.

Pascal
procedure UnhookMainWindow(Hook: TWindowHook);
C++
__fastcall UnhookMainWindow(TWindowHook Hook);

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. 

 

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