Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Screen Output Off
Message
 
À
21/11/2000 07:07:17
Peter Walburn
Omega Data Services Ltd
Aberdeen, Royaume Uni
Information générale
Forum:
Visual Basic
Catégorie:
Autre
Divers
Thread ID:
00443999
Message ID:
00444013
Vues:
13
>Hello,
>
>I am sure that this is probably really simple, but I cannot find out how to do it.
>
>I would like to turn off screen output while I draw a few controls and then turn screen output back on. At the moment I get quite a bit of flicker, but this would stop that happening.
>
>Pete

Had this code to a standard module:
Private Declare Function LockWindowUpdate _
                Lib "user32" _
                (ByVal hwndLock As Long) As Long

Public Sub FreezeUpdate(ByVal plngHandle As Long)
    LockWindowUpdate plngHandle
End Sub
Now, in your form, you can use it this way:
    Call FreezeUpdate(Me.hwnd)
    '... Do your stuff here ...
    Call FreezeUpdate(0&)
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform