Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
RedrawWindow Function
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00444387
Message ID:
00445065
Views:
25
>>>Crud, I was in such a hurry I didn't finish explaining. The problem I have having is with VFP 6, SP4 and Terminal Server. Was hoping that you might know of any issues like this and perhaps how I could fix them...
>>
>>I'm not aware of anything specific to your problem. Do you have a quick and easy reproducible scenario you could email me?
>
>>Well, one further clue is that it only does this in the compiled application. If I run the .exe from the command window the problem does not appear.
>
>Sorry, I royally messed up the last reply. This is the same without the goofed up formatting
>
>To reproduce:
>
>Create a Top Level Form (frmMain)
>    -Have a button on this form that calls a second form
>
>Create a second form that has a grid with several rows of data and a button to call a third form.
>
>Create a third form that covers about half the of the third form
>
>1. Start app so that frmMain is running.
>2. Click button on main to bring up grid form with records.
>3. Click third button to bring up third form.

George, if the third form is modal, try adding the following code surrounding starting the third form:

DECLARE INTEGER GetActiveWindow IN WIN32API
DECLARE SHORT LockWindowUpdate IN WIN32API INTEGER hWnd
DECLARE SHORT SetForegroundWindow IN WIN32API INTEGER hWnd
nHWnd = GetActiveWindow()
=LockWindowUpdate(nHWnd)

*Call third form

=LockWindowsUpdate(0)
=SetForegroundWindow(nHWnd)
>4. Release third form.
>
>The second form will most likely not show any users and the screen my not have refreshed at all--it varies.
>
>Minimize the second form and thing bring it to a normal or maximized state again and it the form will be correct.
>
>This also occurs when dealing with containers on the main form. In my case, depending upon a treeview node that is selected I will hide certain containers and make others visible. When I do this the screen does not change although if you minimize and maximize it will refresh.
>
>>Let me know if you need any clarifications. This is driving me crazy and I have not had any responses (other than yours) on any newsgroups and have not been able to find anything on the MS site, Technet, MSDN...
>
>Thanks,
>George
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform