[Lazarus] SendMessage Bug Work Around.
David W Noon
david.w.noon at ntlworld.com
Fri Apr 23 13:20:01 CEST 2010
On Fri, 23 Apr 2010 11:09:35 +0200, Michael Schnell wrote about Re:
[Lazarus] SendMessage Bug Work Around.:
[snip]
> I don't see why, in Windows, anybody should use SendMessage to send a
> message top a window that is assigned to the same process. AFAIK, this
> is what PostMessage (as well the VCL/LCL function as the Windows API
> call) is provided for.
The SendMessage() and PostMessage() API's have different semantics:
SendMessage() places a message on a message queue and waits for a
return code from the WndProc or DlgProc that processes the message;
PostMessage() places a message on a message queue and returns
to continue execution, without waiting for the message to be processed.
This distinction can be very important.
--
Regards,
Dave [RLU #314465]
=======================================================================
david.w.noon at ntlworld.com (David W Noon)
=======================================================================
More information about the Lazarus
mailing list