Click here to Skip to main content
15,916,941 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Directory that contains the project file Pin
krmed15-May-07 0:50
krmed15-May-07 0:50 
GeneralRe: Directory that contains the project file Pin
cad-JC15-May-07 21:46
cad-JC15-May-07 21:46 
GeneralRe: Directory that contains the project file Pin
krmed16-May-07 1:46
krmed16-May-07 1:46 
QuestionRe: Directory that contains the project file Pin
cad-JC20-May-07 21:32
cad-JC20-May-07 21:32 
AnswerRe: Directory that contains the project file Pin
krmed21-May-07 1:48
krmed21-May-07 1:48 
Questionpdf creation(in MFC application) Pin
Midhun_M14-May-07 23:01
Midhun_M14-May-07 23:01 
AnswerRe: pdf creation(in MFC application) Pin
Nelek15-May-07 2:55
protectorNelek15-May-07 2:55 
QuestionHow to spawn CDialog by CWinThread? Pin
pkyiu14-May-07 22:59
pkyiu14-May-07 22:59 
Hi gentlemen,

I am newbie to MFC programming and I have a problem creating a dialog on a separate thread from the main application.

My situation is: by clicking an icon on a toolbar, a dialog will be prompted and asking for input. As entered the numbers and clicked "OK", these parameters will be passed to the main application to run in a loop and the result will be displayed.

Without threading, the displayed result is obstructed by the dialog and applying the InValidateRect function is not satisfactory since the toolbar now becomes invisible.

Now I have create a "CSub" class based on CDialog and a "CDialogThread" class based on CWndThread. My question is, how to instruct the dialog to run on the thread, then how to pass the threaded dialog parameter back to the main application?

Thank you very much! Smile | :)
AnswerRe: How to spawn CDialog by CWinThread? Pin
Arman S.14-May-07 23:46
Arman S.14-May-07 23:46 
GeneralRe: How to spawn CDialog by CWinThread? Pin
pkyiu15-May-07 3:31
pkyiu15-May-07 3:31 
AnswerRe: How to spawn CDialog by CWinThread? Pin
kasturi_haribabu15-May-07 1:13
kasturi_haribabu15-May-07 1:13 
GeneralRe: How to spawn CDialog by CWinThread? Pin
pkyiu15-May-07 3:45
pkyiu15-May-07 3:45 
QuestionHelp with textbox control Pin
Stick^14-May-07 22:49
Stick^14-May-07 22:49 
QuestionRe: Help with textbox control Pin
Nelek14-May-07 23:34
protectorNelek14-May-07 23:34 
AnswerRe: Help with textbox control Pin
Stick^14-May-07 23:40
Stick^14-May-07 23:40 
GeneralRe: Help with textbox control Pin
Nelek15-May-07 1:01
protectorNelek15-May-07 1:01 
AnswerRe: Help with textbox control Pin
Hamid_RT15-May-07 0:56
Hamid_RT15-May-07 0:56 
GeneralRe: Help with textbox control Pin
Stick^15-May-07 1:10
Stick^15-May-07 1:10 
GeneralRe: Help with textbox control Pin
Nelek15-May-07 1:44
protectorNelek15-May-07 1:44 
GeneralRe: Help with textbox control Pin
Stick^15-May-07 2:21
Stick^15-May-07 2:21 
GeneralRe: Help with textbox control Pin
Nelek15-May-07 3:12
protectorNelek15-May-07 3:12 
GeneralRe: Help with textbox control Pin
Stick^15-May-07 3:21
Stick^15-May-07 3:21 
GeneralRe: Help with textbox control Pin
Nelek15-May-07 21:11
protectorNelek15-May-07 21:11 
GeneralRe: Help with textbox control Pin
Hamid_RT15-May-07 1:53
Hamid_RT15-May-07 1:53 
QuestionChanging datatype from VB.NET to VC++ 6.0 Pin
ctlqt1214-May-07 22:36
ctlqt1214-May-07 22:36 

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.