Hi Philipp,
>Actually I think you're quite wrong here :-) SendMessage will call the
>WinProc directly in the other thread (switching to that thread, or so
>says the msdn documentation). The solar mutex is not involved here
I don't think SendMessage will switch thread: if you execute
sendmessage from thread#2, the window procedure will be executed in
thread#2. This was true in earlier windows versions, but should be
still true for backward compatibility.
>here is that all of vcl's system windows must be created on one thread
>(the main thread) or several operations will silently fail - things like
>drawing, clipboard, DnD, OLE and the like ;-). Or so I was told (being
usually the thread must be the same, but given the difficult to create
windows in differents threads and keep track of them, it results more
easier to handle messaging in thread 1.
OS/2 works in the same way.
Bye,
Yuri Dario
/*
* member of TeamOS/2 - Italy
* http://www.os2power.com/yuri
* http://www.teamos2.it
*/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]