Progress Bar only shows on dialog 
Author Message
 Progress Bar only shows on dialog

Hi there, C++ guru's out on parole (suspended sentence) after being
nicked, for threatening the poor Java programmer.

I opened a parentesis using delphi these last couple of weeks - the
absence of my questions is thus explained.  Easy stuff, Delphi.

Now I've returned to the VC++ (6.0) realm.

I have the following problem : I have a simple dialog, with a static
control (frame) on it and a text label 'Please Wait', and I have a
progress bar control.  I lauch this simple dialog (modeless) and while
I am doing my computation in a loop, I am calling StepIt() to increase
the progress bar state.

Everything works fine, if not for the very annoying feature, that the
static controls are not visible while I am increasing the progress
bar...any ideas why this is so, and how should I turn this behaviour
off ?

Cheers
And Thanks for the help
JP

Sent via Deja.com http://www.*-*-*.com/
Before you buy.



Mon, 09 Sep 2002 03:00:00 GMT  
 Progress Bar only shows on dialog
Ha!

JP here again - amazing! Amusing!
Force a redraw of your static, Windows has decided that it will not allocate
any time for refreshes of the little {*filter*}.
GetDlgItem(IDC_STATIC_WHATEVER)->RedrawWindow just before you start your
processing will do nicely.
And I have never touched a single hair on a Java programmer's head. Haven't
seen one except myself, actually.

Johan Rosengren
Responsable Infomatique
PACTA S.A.



Quote:

> Hi there, C++ guru's out on parole (suspended sentence) after being
> nicked, for threatening the poor Java programmer.

> I opened a parentesis using Delphi these last couple of weeks - the
> absence of my questions is thus explained.  Easy stuff, Delphi.

> Now I've returned to the VC++ (6.0) realm.

> I have the following problem : I have a simple dialog, with a static
> control (frame) on it and a text label 'Please Wait', and I have a
> progress bar control.  I lauch this simple dialog (modeless) and while
> I am doing my computation in a loop, I am calling StepIt() to increase
> the progress bar state.

> Everything works fine, if not for the very annoying feature, that the
> static controls are not visible while I am increasing the progress
> bar...any ideas why this is so, and how should I turn this behaviour
> off ?

> Cheers
> And Thanks for the help
> JP

> Sent via Deja.com http://www.*-*-*.com/
> Before you buy.



Mon, 09 Sep 2002 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Progress bar not showing visual progress

2. Showing file loading/saving progress in progress bar?

3. Progress bar is not showing on status bar

4. Showing progress bar accurately

5. Showing a modeless progress dialog while opening document with MFC

6. ATL dialog & progress bar

7. update progress bar in a popup dialog

8. Displaying progress bar right after dialog is on screen

9. Progress bar in dialog, right after display

10. Modeless Dialog w/progress bar?????????

11. Modeless Dialog with Progress Bar

12. Need feedback from thread to dialog and progress bar

 

 
Powered by phpBB® Forum Software