I'm creating a component, that must process parent's messages. I would like to use hooks, but I don't know, how to set hook to local (component's) method ...
function Mycomponent.MessageHookProc(Code: Integer; wParam: WPARAM; lParam: LPARAM): lResult stdcall;
constructor Mycomponent.create(AOwner : TComponent);
SetWindowsHookEx(WH_CallWndProc, MessageHookProc, 0, GetCurrentThreadId);
Global method is not a solution, since the method is only one and I will have more than one instances on different forms. Any Hint ? thanx