Click here to Skip to main content
15,923,142 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Disable a progress bar Pin
FarPointer2-Apr-06 5:00
FarPointer2-Apr-06 5:00 
GeneralRe: Disable a progress bar Pin
Nibu babu thomas26-Mar-06 20:02
Nibu babu thomas26-Mar-06 20:02 
AnswerRe: Disable a progress bar Pin
Michael Dunn27-Mar-06 9:03
sitebuilderMichael Dunn27-Mar-06 9:03 
QuestionPlease read it Pin
baldha rakesh26-Mar-06 18:44
baldha rakesh26-Mar-06 18:44 
AnswerRe: Please read it Pin
Stephen Hewitt26-Mar-06 19:15
Stephen Hewitt26-Mar-06 19:15 
GeneralRe: Please read it Pin
baldha rakesh26-Mar-06 19:29
baldha rakesh26-Mar-06 19:29 
GeneralRe: Please read it Pin
Stephen Hewitt26-Mar-06 19:32
Stephen Hewitt26-Mar-06 19:32 
AnswerRe: Please read it Pin
krmed27-Mar-06 5:11
krmed27-Mar-06 5:11 
In your handler for the cancel button, you should set a flag (or an event) that can be read in the worker thread that tells it you have cancelled.

Inside the thread, have it finish whatever it's doing and simply allow itself to exit after all necessary cleanup. Just before it exits, it can set another flag (or event) to signify that it is exiting the thread

Back in the main thread, wait for the signal from the thread that it is exiting, then you can safely let the main thread die (by calling your EndDialog).

Hope that helps.

Karl - WK5M
PP-ASEL-IA (N43CS)
<kmedcalf@ev1.net>
PGP Key: 0xDB02E193
PGP Key Fingerprint: 8F06 5A2E 2735 892B 821C 871A 0411 94EA DB02 E193
Questionplaying flash files on dialog box without using Activex Control Pin
RahulOP26-Mar-06 18:21
RahulOP26-Mar-06 18:21 
AnswerRe: playing flash files on dialog box without using Activex Control Pin
Stephen Hewitt26-Mar-06 19:36
Stephen Hewitt26-Mar-06 19:36 
AnswerRe: playing flash files on dialog box without using Activex Control Pin
Eytukan26-Mar-06 21:53
Eytukan26-Mar-06 21:53 
Questionfonts: concept and samples Pin
includeh1026-Mar-06 17:16
includeh1026-Mar-06 17:16 
AnswerRe: fonts: concept and samples Pin
Cool Ju26-Mar-06 20:02
Cool Ju26-Mar-06 20:02 
QuestionHow to associate a scrollbar with image Pin
anilksingh26-Mar-06 17:15
anilksingh26-Mar-06 17:15 
AnswerRe: How to associate a scrollbar with image Pin
includeh1026-Mar-06 17:28
includeh1026-Mar-06 17:28 
AnswerRe: How to associate a scrollbar with image Pin
Hamid_RT26-Mar-06 17:46
Hamid_RT26-Mar-06 17:46 
QuestionAbout SDI Programming Pin
VPNampoothiri26-Mar-06 17:07
VPNampoothiri26-Mar-06 17:07 
AnswerRe: About SDI Programming Pin
includeh1026-Mar-06 17:36
includeh1026-Mar-06 17:36 
QuestionHCURSOR, animated or static? Pin
PJ Arends26-Mar-06 11:19
professionalPJ Arends26-Mar-06 11:19 
Questionselect multiple files instead of 1 only Pin
johnmc9394026-Mar-06 10:29
johnmc9394026-Mar-06 10:29 
AnswerRe: select multiple files instead of 1 only Pin
PJ Arends26-Mar-06 11:27
professionalPJ Arends26-Mar-06 11:27 
GeneralRe: select multiple files instead of 1 only Pin
johnmc9394026-Mar-06 16:54
johnmc9394026-Mar-06 16:54 
AnswerRe: select multiple files instead of 1 only Pin
SteelCrow26-Mar-06 15:27
SteelCrow26-Mar-06 15:27 
GeneralRe: select multiple files instead of 1 only Pin
johnmc9394026-Mar-06 16:56
johnmc9394026-Mar-06 16:56 
QuestionHow to use IDispatch Interface in MFC Pin
a_day26-Mar-06 10:19
a_day26-Mar-06 10:19 

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.