5,388
社区成员
发帖
与我相关
我的任务
分享
FHookWndProc := MakeObjectInstance(HookWndProc);
OldWndProc := Pointer(GetWindowLong(ParentWindow, GWL_WNDPROC));
SetWindowLong(ParentWindow, GWL_WNDPROC, Longint(FHookWndProc));
ShowMessage(Format('%p', [OldWndProc]));
with Msg do
begin
Result := CallWindowProc(OldWndProc, ParentWindow, Msg, WParam, LParam);
end;