JVCL Help:TJvWindowHook

From Project JEDI Wiki
Jump to navigationJump to search
JEDI Visual Component Library Help

Search in JVCL Help

 
Search in all projects
 

Class Hierarchy

TJvWindowHook
run\JvWndProcHook.pas


Summary

Enables you to receive messages send to a certain control.

run\JvWndProcHook.pas


Pascal

 run\JvWndProcHook.pas
 TJvWindowHook = class(TJvComponent);


Description

  1. 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.

run\JvWndProcHook.pas


About

Navigation

run\JvWndProcHook.pas



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