Results 1 to 4 of 4

Thread: flashing controls suck!

  1. #1

    Thread Starter
    Member
    Join Date
    Mar 2000
    Location
    Galt, Ca
    Posts
    47

    Arrow 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

  2. #2
    Matthew Gates
    Guest
    Try the LockWindowUpdate API function.


    Code:
    Private Declare Function LockWindowUpdate Lib "user32" (ByVal hwndLock As Long) As Long

  3. #3
    Megatron
    Guest
    To lock it, pass the handle of the window you wish to lock
    Code:
    LockWindowUpdate hwnd
    And to unlock it, pass 0
    Code:
    LockWindowUpdate 0

  4. #4

    Thread Starter
    Member
    Join Date
    Mar 2000
    Location
    Galt, Ca
    Posts
    47
    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
  •  



Click Here to Expand Forum to Full Width