Duncan MacGregor
October 24th, 2001, 11:55 AM
I have an MFC program which displays graphs in the main window and uses several modeless dialog boxes for controls and displaying various numbers.
It calls a function from the main window class which does a lot of math calculations and can take several minutes to finish. At various stages this function sends messages to the main window to update the graphs and calls dialog box class functions to update progress indicators. Everything works fine until the window is minimized or another window covers it after which to display refuses to update until the math function has finished. Under Win 2000 and Win 98 the window doesn't refresh properly but it still updates specific parts (like an individual text box) when told to from the math function but under XP everything stays blank until the function returns.
Any help much appreciated.
Duncan
It calls a function from the main window class which does a lot of math calculations and can take several minutes to finish. At various stages this function sends messages to the main window to update the graphs and calls dialog box class functions to update progress indicators. Everything works fine until the window is minimized or another window covers it after which to display refuses to update until the math function has finished. Under Win 2000 and Win 98 the window doesn't refresh properly but it still updates specific parts (like an individual text box) when told to from the math function but under XP everything stays blank until the function returns.
Any help much appreciated.
Duncan