( Sorry I don't know how to edit my posted messages )
The dialog is started within the newly created thread, in other word, the dialog is not a member of the main dialog. I tried to use AfxGetApp->m_pMainWnd to visit the main dialog, failed. And I also tried to post some messages to the thread...
thanks pete and rick!
Sorry I didn't make my question clear:) I knew how to send messages with Post/SendMessage but does it mean that I need to make the dialog a global variable? I hate this:( I don't know how to visit this dialog class in the Main Dialog. Because the dialog is started with a...
I created a dialog based mfc project in which another dialog can be started with a new thread. My question is that how can i send some messages to the newly started dialog in the main dialog? TIA.
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.