JVCL Help:TJvHookMessageEvent

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

Search in JVCL Help

 
Search in all projects
 

Summary

Type for event handlers that let an application process messages before or after the hooked control has handled it.

run\JvWndProcHook.pas


Pascal

 run\JvWndProcHook.pas
 TJvHookMessageEvent = procedure (Sender: TObject; var Msg: TMessage; var Handled: Boolean) ofobject;


Parameters

Parameters Description
Sender The hook component that has send this message.
Msg Represents the Windows message that is about to be send to or just has been send to the hooked control.
Handled Set Handled to true to specify that the message is handled, and that no other hooks, or the hooked control itself, may respond to this message.

run\JvWndProcHook.pas


Description

Use TJvHookMessageEvent to respond to messages send to the hooked control. Use parameter Handled to specify whether the message is handled. Setting Handled to true will prevent other hooks or the hooked control - if it has not received the message yet - to respond to this message.

run\JvWndProcHook.pas


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