JVCL Help:TJvWindowHook
JVCL Help: TJvWindowHook Class
Search in JVCL Help
Search in all projectsClass Hierarchy
TJvWindowHook
run\JvWndProcHook.pas
Summary
Enables you to receive messages send to a certain control.
Pascal
run\JvWndProcHook.pas
TJvWindowHook = class(TJvComponent);
Description
- JVCLInfo
Use TJvWindowHook to receive and respond to messages send to a certain control.
SetControl to specify the control to hook and set Active to true to place a hook on that control. Write BeforeMessage and/or AfterMessage event handlers to respond to messages before or after they are handled by the hooked control. Note that if you do not write a BeforeMessage and AfterMessage handler that the control won't be hooked.
TJvWindowHook places and removes a hook on a control by a call to RegisterWndProcHook and UnRegisterWndProcHook, resp. An internal list is maintained to prevent "broken links" when a hook is removed.
About
Contribute to this help topic
This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page