Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DRAW() not working as expected
Message
De
13/06/2013 15:42:19
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Desktop
Divers
Thread ID:
01576345
Message ID:
01576351
Vues:
55
>>Also, one thing you might do after your Draw() code is add this:
DECLARE INTEGER InvalidateRect  IN WIN32API INTEGER hwnd, INTEGER ignore1, INTEGER ignore2
InvalidateRect(thisForm.hwnd, 0, 0)  && Just repaint foreground items
*InvalidateRect(thisForm.hwnd, 0, 1)  && Also repaint the background coloring
>>
>>That will force the window to repaint itself at the Windows OS level, and may help it "go away".
>
>The Themes = .F. had no effect.
>But InvalidateRect() does work perfectly, I don't even need to call THISFORM.Draw().
>So I created a method THISFORM.Redraw() and put the API call in there.
>Thank you!


You're welcome. I updated the note above about the ignore1 and ignore2 values. The ignore2 parameter is actually "redrawBackground?"
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform