I have already asked this question ...but could not get convincing reply..
In traditional way of windows programming... when a windows messages is generated say WM_LBUTTONDOWN this message is put in 'system message queue'
then OS(windows nt) will remove this message from 'system message queue' and puts in 'window message queue'(each window is having separte mess.queue)'.
Then the window removes the message and asks the 'windows'(OS) to call the wndproc call back function to handle the message.
1. So there are one system message queue
and message queues for all the windows in an application. Further every window is having it's own wndproc. Is it correct ?
2. Can u explain in detail how messages are handled by the MFC.(wanted a brief explanation). will the message map macros call again win32 sdk function.
where does these 'getmessage', dispath message' function comes and called in mfc way of message mapping process ?
3. Which class is providing a message loop eithere CWinApp::Run or CWinthread::Run