Thanks for an instant reply Jules. I really appreciate it.
I was actually going through a msdn document on message queues: http://msdn.microsoft.com/en-us/library/windows/desktop/ms644927(v=vs.85).aspx
where I found these sections :
The system can display any number of windows at a time. To route mouse and keyboard input to the appropriate window, the system uses message queues.
The system maintains a single system message queue and one thread-specific message queue for each GUI thread. "
Whenever the user moves the mouse, clicks the mouse buttons, or types on the keyboard, the device driver for the mouse or keyboard converts the input into messages and places them in the system message queue. The system removes the messages, one at a time, from the system message queue, examines them to determine the destination window, and then posts them to the message queue of the thread that created the destination window. A thread’s message queue receives all mouse and keyboard messages for the windows created by the thread. The thread removes messages from its queue and directs the system to send them to the appropriate window procedure for processing.”
An application must remove and process messages posted to the message queues of its threads. A single-threaded application usually uses a message loop in its WinMain function to remove and send messages to the appropriate window procedures for processing. Applications with multiple threads can include a message loop in each thread that creates a window.”
Reading this I thought it is possible to have a multi-threaded GUI application. Can you please correct me if I am wrong in my understanding of the topic.
Thanks & Regards,