Click here to Skip to main content
15,903,385 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Share names Pin
_AnsHUMAN_ 16-Jan-06 21:50
_AnsHUMAN_ 16-Jan-06 21:50 
QuestionRe: Share names Pin
kelprinc16-Jan-06 22:10
kelprinc16-Jan-06 22:10 
AnswerRe: Share names Pin
vallikumar16-Jan-06 22:23
vallikumar16-Jan-06 22:23 
QuestionRe: Share names Pin
kelprinc16-Jan-06 22:28
kelprinc16-Jan-06 22:28 
AnswerRe: Share names Pin
_AnsHUMAN_ 16-Jan-06 22:29
_AnsHUMAN_ 16-Jan-06 22:29 
QuestionRe: Share names Pin
kelprinc16-Jan-06 22:34
kelprinc16-Jan-06 22:34 
AnswerRe: Share names Pin
David Crow17-Jan-06 4:28
David Crow17-Jan-06 4:28 
QuestionQuery related to Worker Threads & GUI Window? Pin
dp_7616-Jan-06 20:28
dp_7616-Jan-06 20:28 
Hi I have an Windows Explorer type MFC SDI Application.

In my application i am doing heavy processing using worker threads so that the main thread donot hangs(during a heavy process) & keeps processing user requests.

Now at the time the heavy process(finding files/folders in logical drive) is executing, the GUI is also being updated via ::SendMessage() function from worker thread to the primary thread.
Following are updated:

--> In tree view folders are added.
--> In List View files are added in Report view.
--> Progress bar status bar pane 0 is updated.
--> Status bar pane 1 is also updated with total of files & folders.

Now my question is:

Q1--> Is the above strategy fine?.

Also while the heavy process is running & the user presses the <stop> toolbar button, the control goes to CMainFrm::OnStop(). From this function a message box is prompted to the user asking whether he wants to stop or not.

Is this display of msg box by the main thread fine while the worker thread is running?.If the user says <yes>, the worker thread is made to return.


I have also read that worker threads must not try to launch any GUI window(message box, dialogs.). But here in my case the msg box is thrown by the main primary thread.


Waiting for suggestions

Best Regards
AnswerRe: Query related to Worker Threads & GUI Window? Pin
Roger Stoltz16-Jan-06 21:37
Roger Stoltz16-Jan-06 21:37 
Answer[Message Deleted] Pin
Stephen Hewitt16-Jan-06 21:47
Stephen Hewitt16-Jan-06 21:47 
AnswerRe: Query related to Worker Threads & GUI Window? Pin
Stephen Hewitt16-Jan-06 21:47
Stephen Hewitt16-Jan-06 21:47 
Questionhow to convert the HTML files output to the image like bitmap or jpg Pin
Hemant kulkarni16-Jan-06 20:26
Hemant kulkarni16-Jan-06 20:26 
AnswerRe: how to convert the HTML files output to the image like bitmap or jpg Pin
kelprinc16-Jan-06 20:44
kelprinc16-Jan-06 20:44 
GeneralRe: how to convert the HTML files output to the image like bitmap or jpg Pin
Hemant kulkarni16-Jan-06 21:14
Hemant kulkarni16-Jan-06 21:14 
GeneralRe: how to convert the HTML files output to the image like bitmap or jpg Pin
Stephen Hewitt16-Jan-06 22:06
Stephen Hewitt16-Jan-06 22:06 
GeneralRe: how to convert the HTML files output to the image like bitmap or jpg Pin
Stephen Hewitt16-Jan-06 23:00
Stephen Hewitt16-Jan-06 23:00 
AnswerRe: how to convert the HTML files output to the image like bitmap or jpg Pin
Owner drawn16-Jan-06 22:15
Owner drawn16-Jan-06 22:15 
AnswerRe: how to convert the HTML files output to the image like bitmap or jpg Pin
Stephen Hewitt16-Jan-06 23:08
Stephen Hewitt16-Jan-06 23:08 
GeneralRe: how to convert the HTML files output to the image like bitmap or jpg Pin
Hemant kulkarni16-Jan-06 23:30
Hemant kulkarni16-Jan-06 23:30 
GeneralRe: how to convert the HTML files output to the image like bitmap or jpg Pin
Anamika200518-May-06 20:10
Anamika200518-May-06 20:10 
GeneralRe: how to convert the HTML files output to the image like bitmap or jpg Pin
Stephen Hewitt18-May-06 20:14
Stephen Hewitt18-May-06 20:14 
AnswerRe: how to convert the HTML files output to the image like bitmap or jpg Pin
vikas amin17-Jan-06 0:51
vikas amin17-Jan-06 0:51 
QuestionSend mouse message Pin
leenmie16-Jan-06 19:47
leenmie16-Jan-06 19:47 
AnswerRe: Send mouse message Pin
Rajesh R Subramanian16-Jan-06 19:54
professionalRajesh R Subramanian16-Jan-06 19:54 
AnswerRe: Send mouse message Pin
Stephen Hewitt16-Jan-06 19:55
Stephen Hewitt16-Jan-06 19:55 

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.