HI , Thanks for the below, cheers.
For a test, I got only one thread to send out a postmessage(..) every 10 seconds with the same message. In the message routine I simply displayed a dialog box. The dialog boxes kept being displayed, before I pressed the ok button to end the message routine. I was expecting to wait until the dialog box appear, then the next one would appear etc.. Why is this?
Neil
----- Original Message ----- From: "/dev/null" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Monday, May 02, 2005 1:41 AM
Subject: Re: [msvc] Posting a message
So there are 4 IOCP worker threads, which can all pass messages to the main CDialog class, so is it possible that two message handlers execute simultaneously?
No. You dialog messages are only handled in one thread, the thread that created the dialog. Windows doesn't magically create threads in the background. It starts one thread and instantiates your application in it. Any other threads are created by you and you (or your code) is fully aware of them and what they are doing.
_______________________________________________
msvc mailing list
[email protected]
See http://beginthread.com/mailman/listinfo/msvc_beginthread.com for subscription changes, and list archive.
_______________________________________________ msvc mailing list [email protected] See http://beginthread.com/mailman/listinfo/msvc_beginthread.com for subscription changes, and list archive.
