Click here to Skip to main content
16,017,297 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionFile operation problem. Pin
sandeepkavade22-May-07 1:57
sandeepkavade22-May-07 1:57 
QuestionRe: File operation problem. Pin
David Crow22-May-07 2:47
David Crow22-May-07 2:47 
QuestionWorker threads and GUI Pin
iayd22-May-07 1:21
iayd22-May-07 1:21 
AnswerRe: Worker threads and GUI Pin
Arman S.22-May-07 1:59
Arman S.22-May-07 1:59 
AnswerRe: Worker threads and GUI Pin
Roger Stoltz22-May-07 2:56
Roger Stoltz22-May-07 2:56 
GeneralRe: Worker threads and GUI Pin
iayd22-May-07 3:25
iayd22-May-07 3:25 
GeneralRe: Worker threads and GUI Pin
Manoj Kumar Rai22-May-07 4:18
professionalManoj Kumar Rai22-May-07 4:18 
GeneralRe: Worker threads and GUI Pin
Roger Stoltz22-May-07 5:05
Roger Stoltz22-May-07 5:05 
iayd wrote:
I think there should be a way to do this in this wa


Well, you cannot create windows in threads that don't process messages.
This means that if you create a worker thread, you cannot create a modeless dialog in that thread. You could however create a modal dialog because it will pump messages inside an internal message pump until the dialog is closed. But the call to DoModal() won't return until the dialog is dismissed. This means that your worker thread cannot do anything else but showing that dialog.

If you want to create a modeless dialog, or any window, from another thread than your main thread, it will have to be a UI-thread.


"It's supposed to be hard, otherwise anybody could do it!" - selfquote
"High speed never compensates for wrong direction!" - unknown

QuestionButton control Pin
saisp22-May-07 1:13
saisp22-May-07 1:13 
AnswerRe: Button control Pin
josip cagalj22-May-07 1:15
josip cagalj22-May-07 1:15 
AnswerRe: Button control Pin
Hamid_RT22-May-07 1:21
Hamid_RT22-May-07 1:21 
AnswerRe: Button control Pin
Hamid_RT22-May-07 1:25
Hamid_RT22-May-07 1:25 
GeneralRe: Button control Pin
saisp22-May-07 1:56
saisp22-May-07 1:56 
GeneralRe: Button control Pin
Hamid_RT22-May-07 2:05
Hamid_RT22-May-07 2:05 
GeneralRe: Button control Pin
saisp22-May-07 2:23
saisp22-May-07 2:23 
QuestionRe: Button control Pin
Hamid_RT22-May-07 7:43
Hamid_RT22-May-07 7:43 
AnswerRe: Button control Pin
David Crow22-May-07 2:58
David Crow22-May-07 2:58 
QuestionIMAPI Pin
josip cagalj22-May-07 1:13
josip cagalj22-May-07 1:13 
QuestionRe: IMAPI Pin
David Crow22-May-07 3:00
David Crow22-May-07 3:00 
AnswerRe: IMAPI Pin
josip cagalj22-May-07 3:47
josip cagalj22-May-07 3:47 
QuestionRe: IMAPI Pin
David Crow22-May-07 3:54
David Crow22-May-07 3:54 
AnswerRe: IMAPI Pin
josip cagalj22-May-07 4:01
josip cagalj22-May-07 4:01 
GeneralRe: IMAPI Pin
David Crow22-May-07 6:01
David Crow22-May-07 6:01 
GeneralRe: IMAPI Pin
josip cagalj22-May-07 19:32
josip cagalj22-May-07 19:32 
AnswerRe: IMAPI Pin
josip cagalj22-May-07 19:51
josip cagalj22-May-07 19:51 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.