Jump to content
Sign in to follow this  
Champak

Force update/redraw gui

Recommended Posts

Champak

I came across the function before, but can't remember what/where it is. So how do I force the redraw/painting of a GUI?

Thanks.

Edited by Champak

Share this post


Link to post
Share on other sites
SmOke_N

I came across the function before, but can't remember what/where it is. So how do I force the redraw/painting of a GUI?

Thanks.

You can try sending a SendMessage() + WM_PAINT message.

Or do something here: http://msdn.microsoft.com/en-us/library/ms534906(VS.85).aspx


Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Share this post


Link to post
Share on other sites
Szhlopp

I came across the function before, but can't remember what/where it is. So how do I force the redraw/painting of a GUI?

Thanks.

_WinAPI_RedrawWindow ($GUI) ; Also sends $WM_PAINT

GUISetBkColor(0xF0F0F0)

Both redraw the window :)

  • Like 2

Share this post


Link to post
Share on other sites
Champak

Ah, the _WinAPI_RedrawWindow function is what I came across before and couldn't remember where/what it was. Thanks to both.

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
Sign in to follow this  

×