VeryGary

Pause and resume GUI window painting?

4 posts in this topic

So, I seem to remember reading years ago there was a way to suspend the painting of GUI updates and resume it, so you had time to do all your changes and make them appear all at once...

Searching is giving me a headache. Any ideas?

Share this post


Link to post
Share on other sites



You may be recalling passing _WinAPI_RedrawWindow() with the flag $RDW_NOINTERNALPAINT.  Just a guess...

 

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

Actually it was _SendMessage($form, $WM_SETREDRAW, False/True, 0) followed by _WinAPI_RedrawWindow ($form, $tRect, 0, BitOR( $RDW_FRAME, $RDW_INVALIDATE, $RDW_ALLCHILDREN)) for the updated $tagRect.

I got it sorted this morning.  Thanks.

No more flickering controls, and they paint more or less all at once.

Edited by VeryGary

Share this post


Link to post
Share on other sites

Glad you got it solved. I learned something from you, too.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now