|
-
May 22nd, 2001, 07:56 PM
#1
Thread Starter
Member
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
-
May 22nd, 2001, 09:56 PM
#2
Try the LockWindowUpdate API function.
Code:
Private Declare Function LockWindowUpdate Lib "user32" (ByVal hwndLock As Long) As Long
-
May 23rd, 2001, 02:45 PM
#3
To lock it, pass the handle of the window you wish to lock
Code:
LockWindowUpdate hwnd
And to unlock it, pass 0
-
May 23rd, 2001, 07:30 PM
#4
Thread Starter
Member
the images that are updating are also moving... when i use the LockWindowUpdate, they don't move
-emptywords
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|