How to batch calls to ShowWindow
I am updating a window by making several calls to ShowWindow() on the controls within the window. I can literally watch the controls coming and going, sometimes taking many seconds to complete. Is there a way I can freeze the window, make my calls to ShowWindow(), then unfreeze it, so that it paints only once?
Re: How to batch calls to ShowWindow
In the past, I've used the "LockWindowUpdate" function. However, it seems that this is not the proper use case. Check out the WM_SETREDRAW message. Send this message to the parent window of the controls.
Viggy
Re: How to batch calls to ShowWindow
Quote:
Originally Posted by
bobkohn
I am updating a window by making several calls to ShowWindow() on the controls within the window. I can literally watch the controls coming and going, sometimes taking many seconds to complete. Is there a way I can freeze the window, make my calls to ShowWindow(), then unfreeze it, so that it paints only once?
Check out DeferWindowPos