JVCL Help:UnRegisterWndProcHook@TControl@TJvControlHook@TJvHookOrder

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

Search in JVCL Help

 
Search in all projects
 

Summary

Removes a registered hook.

run\JvWndProcHook.pas


Pascal

 run\JvWndProcHook.pas
 functionUnRegisterWndProcHook(AControl: TControl; Hook: TJvControlHook; constOrder: TJvHookOrder): Boolean; overload;
functionUnRegisterWndProcHook(AHandle: THandle; Hook: TJvControlHook; constOrder: TJvHookOrder): Boolean; overload;


Parameters

Parameters Description
AControl: TControl Specifies the hooked control.
Hook: TJvControlHook Specifies the control hook procedure.
const Order: TJvHookOrder Specifies the kind of hook. It should be the same value as used by the call to RegisterWndProcHook.
AHandle: THandle Specifies the hooked handle.

run\JvWndProcHook.pas


Description

Call UnRegisterWndProcHook to unhook a control. The hook must previously been registered by a call to RegisterWndProcHook.
TJvWindowHook calls this method when it wants to stop hooking the control. An internal list is maintained to prevent "broken links" when a hook is removed.

run\JvWndProcHook.pas


See Also

RegisterWndProcHook

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