Click to See Complete Forum and Search --> : Why Windows cannot call WndProc() directly?


joscollin
March 25th, 2004, 11:24 PM
Why Windows not calling the WndProc() directly instead of pushing the message to the message queue and call WndProc after getting the message back from the message loop.

Myself dot NET
March 26th, 2004, 05:23 AM
One reason is so that the thread that created the window processes the message. I'm sure other reasons include the fact that a message queue system is more flexible than directly calling window procedures.