Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
RedrawWindow Function
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00444387
Message ID:
00444407
Vues:
19
>Can one of you API gurus show me how to declare and call the RedrawWindow function from VFP? I know how to get a handle for the window I want to redraw but am stumped as to how to declare the function and pass it the flags.
*-- Defines from WINUSER.H
#define RDW_INVALIDATE          0x0001
#define RDW_INTERNALPAINT       0x0002
#define RDW_ERASE               0x0004

#define RDW_VALIDATE            0x0008
#define RDW_NOINTERNALPAINT     0x0010
#define RDW_NOERASE             0x0020

#define RDW_NOCHILDREN          0x0040
#define RDW_ALLCHILDREN         0x0080

#define RDW_UPDATENOW           0x0100
#define RDW_ERASENOW            0x0200

#define RDW_FRAME               0x0400
#define RDW_NOFRAME             0x0800

*-- Merely a sample.  OR the flags for whatever you wish.
liMyFlags = RDW_UPDATENOW  

*-- Get your hWnd however you like.  In VFP7:
liHwnd = _screen.hwnd
Declare Integer RedrawWindow In User32.dll Integer, String, String, Integer

*-- Just NULL the 2nd and 3rd params to update the whole window region
liRetVal = RedrawWindow(liHwnd, Null, Null, liMyFlags)
Mike Stewart
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform