Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Portion of form not visible once Word opens and closes
Message
From
07/05/2005 15:39:40
 
 
To
07/05/2005 10:34:24
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
01009865
Message ID:
01011952
Views:
15
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
Previous
Reply
Map
View

Click here to load this message in the networking platform