WM_COPYDATA won't reach WndProc
Original Reporter info from Mantis: grl
-
Reporter name: Lukas Gradl
Original Reporter info from Mantis: grl
- Reporter name: Lukas Gradl
Description:
Created a small test-application for sending Messages.
Tried
procedure WndProc(var msg: TMessage); override;
and
procedure TestCopyProc(var msg: TMessage); message WM_COPYDATA;
in a MainForm of an Win32-App.
But when I send a WM_COPYDATA-Message to this Window it won't reach the procedures.
As an Alternative I tried sending WM_USER+33 which works as expected.
Additional information:
WndProc was implemented as follows:
procedure TfMain.WndProc(var msg: TMessage);
begin
if msg.msg=WM_COPYDATA then begin
Memo1.Lines.Add('Copymessage/WndProc erhalten!');
end else begin
inherited WndProc(Msg);
end;
end;
and TestCopyProc as:
procedure TfMain.TestCopyProc(var msg: TMessage);
begin
Memo1.Lines.Add('Copymessage erhalten!');
end;
Mantis conversion info:
- Mantis ID: 9210
- Version: 0.9.23 (SVN)
- Target version: 1.4