
DisableWindowRedraw(window)
Code: Select all
SendMessage_(WindowID(window),#WM_SETREDRAW,#False,0)
Code: Select all
SendMessage_(WindowID(window),#WM_SETREDRAW,#True,0)
RedrawWindow_(WindowID(window),#Null,#Null,#RDW_INVALIDATE)
Code: Select all
SendMessage_(GadgetID(gadget),#WM_SETREDRAW,#False,0)
Code: Select all
SendMessage_(GadgetID(gadget),#WM_SETREDRAW,#True,0)
RedrawWindow_(GadgetID(gadget),#Null,#Null,#RDW_INVALIDATE)
maube a region is needed, but hopefully you understand what I mean here

The idea is that one can turn off the redrawing thereby reducing a lot of systems messages while windows with many gadgets are resized etc.
Likewise, for gadgets it is very important.
Esp. gadgets like listviews and similar as they normaly redraw each time you add a item to them.
(adding 50000+ items to a listview is very slow unless redrawing is disabled)