-
flashing controls suck!
i am working on a game... and it updates images coordinates often, this causes them to flash. I used to always see this tip somewhere on this site that showed how to prevent this.., but i can't find it... does anyone know how to prevent controls from flashing when they update?
thanks
-emptywords
-
Try the LockWindowUpdate API function.
Code:
Private Declare Function LockWindowUpdate Lib "user32" (ByVal hwndLock As Long) As Long
-
To lock it, pass the handle of the window you wish to lock
Code:
LockWindowUpdate hwnd
And to unlock it, pass 0
-
the images that are updating are also moving... when i use the LockWindowUpdate, they don't move
-emptywords