R
ruohan
Unregistered / Unconfirmed
GUEST, unregistred user!
DefaultClientWndProc ointer;
function ClientWndProc(wndHandle :HWND;Msg :LongInt;
wParam,lParam :LongInt) :LongInt;
begin
if Msg <> $003F then
Result := CallWindowProc(DefaultClientWndProc,Form1.ClientHandle,Msg,WParam,LParam);
end;
procedure TForm2.FormCreate(Sender: TObject);
begin
if DefaultClientWndProc = nil then
DefaultClientWndProc :=Pointer(SetWindowLong(Form1.ClientHandle,GWL_WNDPROC,
LongInt(@ClientWndProc)));
end;
function ClientWndProc(wndHandle :HWND;Msg :LongInt;
wParam,lParam :LongInt) :LongInt;
begin
if Msg <> $003F then
Result := CallWindowProc(DefaultClientWndProc,Form1.ClientHandle,Msg,WParam,LParam);
end;
procedure TForm2.FormCreate(Sender: TObject);
begin
if DefaultClientWndProc = nil then
DefaultClientWndProc :=Pointer(SetWindowLong(Form1.ClientHandle,GWL_WNDPROC,
LongInt(@ClientWndProc)));
end;