Click here to Skip to main content
15,896,063 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: What happens when we lock same critical section twice? Pin
Iain Clarke, Warrior Programmer9-Sep-08 4:15
Iain Clarke, Warrior Programmer9-Sep-08 4:15 
AnswerRe: What happens when we lock same critical section twice? Pin
SRKSHOME9-Sep-08 20:31
SRKSHOME9-Sep-08 20:31 
GeneralRe: What happens when we lock same critical section twice? Pin
SRKSHOME9-Sep-08 20:50
SRKSHOME9-Sep-08 20:50 
QuestionCProgressBarCtrl question Pin
monsieur_jj8-Sep-08 23:57
monsieur_jj8-Sep-08 23:57 
AnswerRe: CProgressBarCtrl question Pin
SandipG 9-Sep-08 0:01
SandipG 9-Sep-08 0:01 
GeneralRe: CProgressBarCtrl question Pin
CPallini9-Sep-08 0:09
mveCPallini9-Sep-08 0:09 
GeneralRe: CProgressBarCtrl question Pin
SandipG 9-Sep-08 0:19
SandipG 9-Sep-08 0:19 
AnswerRe: CProgressBarCtrl question Pin
krmed9-Sep-08 2:09
krmed9-Sep-08 2:09 
As mentioned by others you should not access UI components from your thread.

However, it appears that you're really just using SetPos, which should be OK. One thing you can try is after every call to
ProgressBar.SetPos();
add a call to
ProgressBar.UpdateWindow();


UpdateWindow() sends a message directly to the window, bypassing the normal message queue.

Hope that helps.

Karl - WK5M
PP-ASEL-IA (N43CS)
PGP Key: 0xDB02E193
PGP Key Fingerprint: 8F06 5A2E 2735 892B 821C 871A 0411 94EA DB02 E193

QuestionZooming Problem Pin
Bernaad8-Sep-08 23:31
Bernaad8-Sep-08 23:31 
AnswerRe: Zooming Problem Pin
Rane8-Sep-08 23:44
Rane8-Sep-08 23:44 
QuestionHow and why does the output vary for pre and post increment operators? Pin
Member 55028798-Sep-08 23:27
Member 55028798-Sep-08 23:27 
AnswerRe: How and why does the output vary for pre and post increment operators? Pin
_AnsHUMAN_ 8-Sep-08 23:34
_AnsHUMAN_ 8-Sep-08 23:34 
AnswerRe: How and why does the output vary for pre and post increment operators? Pin
toxcct8-Sep-08 23:37
toxcct8-Sep-08 23:37 
QuestionHow to expand a button after clicking it Pin
Member 46556858-Sep-08 22:27
Member 46556858-Sep-08 22:27 
AnswerRe: How to expand a button after clicking it Pin
toxcct8-Sep-08 22:33
toxcct8-Sep-08 22:33 
GeneralRe: How to expand a button after clicking it Pin
SandipG 8-Sep-08 22:58
SandipG 8-Sep-08 22:58 
GeneralRe: How to expand a button after clicking it Pin
toxcct8-Sep-08 23:01
toxcct8-Sep-08 23:01 
GeneralRe: How to expand a button after clicking it Pin
_AnsHUMAN_ 8-Sep-08 23:05
_AnsHUMAN_ 8-Sep-08 23:05 
GeneralRe: How to expand a button after clicking it Pin
Member 46556858-Sep-08 23:22
Member 46556858-Sep-08 23:22 
GeneralRe: How to expand a button after clicking it Pin
toxcct8-Sep-08 23:24
toxcct8-Sep-08 23:24 
GeneralRe: How to expand a button after clicking it Pin
Member 46556858-Sep-08 23:30
Member 46556858-Sep-08 23:30 
GeneralRe: How to expand a button after clicking it Pin
toxcct8-Sep-08 23:31
toxcct8-Sep-08 23:31 
AnswerRe: How to expand a button after clicking it Pin
_AnsHUMAN_ 8-Sep-08 22:57
_AnsHUMAN_ 8-Sep-08 22:57 
AnswerRe: How to expand a button after clicking it Pin
SandipG 8-Sep-08 23:17
SandipG 8-Sep-08 23:17 
QuestionWhen to use constant variable, and when to use preprocessor/macro constants? Pin
Member 55028798-Sep-08 22:08
Member 55028798-Sep-08 22:08 

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.