Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Portion of form not visible once Word opens and closes
Message
De
07/05/2005 15:39:40
 
 
À
07/05/2005 10:34:24
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
01009865
Message ID:
01011952
Vues:
16
Hello,

"i don't understand it at all, but i'll try it a bunch more times and hope it works."

The purpose of the function is to tell the OS that a particular Rectangle in a window has to be repainted, by passing 0 as the lpRect parameter it's telling the OS to invalidate/'force a redraw' of the whole window.

Nice if it works .. it was just a good guess since Foxpro handles drawing of windows differently than any other standard windows applications.
To be more specific, FoxPro controls are not real windows (that's why they don't have a Hwnd property), instead FoxPro uses it's own drawing engine to draw the controls directly onto the Form/Window (for some historical reason's i don't remember well .. i think it was either a performance reason or introduced so the code could be used crossplatform (many years back when FoxPro X.0 was able to also run on Unix/Mac machines))

in C(++) and all other development environments that i know of the controls you put on a form are real childwindows of the form

you may try leaving out the THISFORM.Refresh(), should work also.

Regards
Christian
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform