Recent

Author Topic: How can my app receive the WM_COPYDATA message on WIN32?  (Read 4726 times)

marunguy

  • New Member
  • *
  • Posts: 23
How can my app receive the WM_COPYDATA message on WIN32?
« on: February 01, 2011, 04:02:28 am »
I use the Lazarus + fpc 2.4.3.

I reference below link.
http://www.lazarus.freepascal.org/index.php/topic,3973.0.html

Below is my test code.
Code: [Select]
.........
protected
    procedure WndProc( var TheMessage: TLMessage); override;
.........
procedure TFormMain.WndProc( var TheMessage: TLMessage);
begin
  if TheMessage.msg = WM_COPYDATA then
    MessageDlg('AAAA', mtInformation, [mbOK], 0 )
  else
    inherited WndProc(TheMessage)
end;

But, My app cannot receive the WM_COPYDATA message.

I try with PassWin32MessagesToLCL define, but result is same.

How can my app receive the WM_COPYDATA message?

 

TinyPortal © 2005-2018