If these are modal dialogs then they need to process their own messages, which is what the DoModal() function does for you. If your dialogs are modeless then the main message loop will pump messages to them for you. If you want to write your own modal message loop with special processing for a dialog then you can grab some of the code from the MFC source if you have Visual C. Have a look at int CWnd::RunModalLoop(DWORD dwFlags) in wincore.cpp
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.