Creating windows in worker threads
-
;PHere's an interesting question... What are the consequences of creating windows (by using either Create(..) or DoModal() in a worker thread. Since a worker thread has no message queue and AfxGetMainWnd() returns the window associated with the thread, how will it work? Should it work? What are the effects? The reason I'm asking, is I've noticed some part of the program I'm been assigned to create windows in worker threads. I know the best way is to create a GUI thread and assign the m_pMainWnd variable to the created window. I really just want to know the effects of windows in worker threads. Regards, GeMe_Hendrix ;P
-
;PHere's an interesting question... What are the consequences of creating windows (by using either Create(..) or DoModal() in a worker thread. Since a worker thread has no message queue and AfxGetMainWnd() returns the window associated with the thread, how will it work? Should it work? What are the effects? The reason I'm asking, is I've noticed some part of the program I'm been assigned to create windows in worker threads. I know the best way is to create a GUI thread and assign the m_pMainWnd variable to the created window. I really just want to know the effects of windows in worker threads. Regards, GeMe_Hendrix ;P
Try AfxMessageBox("Some message")? If it works, it is good. =========================== My home is www.brigsoft.com
-
Try AfxMessageBox("Some message")? If it works, it is good. =========================== My home is www.brigsoft.com
Yeah, thanks for that comprehensive answer to the complex subject of multithreading and message queueing that I was trying to find out about. :wtf: