problem with screen updates



I have a Win32 program that contains the standard document/view structure.

I have a blank screen initially (just like in notepad) with a tool bar with
1 button.

When I press the button, my program performs a series of calculations. These
calculations take a fairly long time, so I would like to display a progress
bar which updates as my calculations are progressing. How would I perform
this function?

I have attempted to write a series of "progress commands" to the main window
however these progress commands do not become visible until my calculation
is complete. THEN all of them are displayed at once on the screen. How can
I update my screen in Real-Time while my calculation is being processed?

--
_____________________
www.maduckgames.com




.