Hold redraw until view resizing is finished
-
I have a view with complex dawing that takes a while. When I resize the window, Windows tries to draw, draw, draw, and it makes the whole sizing thing really hateful, even on a fast machine. What I absolutely cannot figure out, is how to turn off updating until the window resizing is *finished*. I can find no message for "user released the mouse, resizing is done". It seems like this ought to be straightforward, but this is Windows, right? Anyone know how to do this?
-
I have a view with complex dawing that takes a while. When I resize the window, Windows tries to draw, draw, draw, and it makes the whole sizing thing really hateful, even on a fast machine. What I absolutely cannot figure out, is how to turn off updating until the window resizing is *finished*. I can find no message for "user released the mouse, resizing is done". It seems like this ought to be straightforward, but this is Windows, right? Anyone know how to do this?
-
I have a view with complex dawing that takes a while. When I resize the window, Windows tries to draw, draw, draw, and it makes the whole sizing thing really hateful, even on a fast machine. What I absolutely cannot figure out, is how to turn off updating until the window resizing is *finished*. I can find no message for "user released the mouse, resizing is done". It seems like this ought to be straightforward, but this is Windows, right? Anyone know how to do this?
-
This doesn't do anything. I assume you mean to set these in the AfxRegisterWndClass() command. I tried doing that in both the CView class and the CMDIChildWnd class. Neither place did I notice any effect. The IOnSize message gets called anyway every time the frame window size changes a little bit. Is there another place to set these flags to get the desired effect? Mike Newberry ================== The original message was: Modify the window's class not to have the CS_HREDRAW and CS_VREDRAW styles set.