Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ShowWindow
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Title:
Miscellaneous
Thread ID:
00278675
Message ID:
00278736
Views:
18
>I am using WIN32API to find out if the application is all ready loaded then using ShowWindow to show the window. I get inconsistant results on showing the window. Sometimes it is shown and sometimes it is only partialy painted. I have tried the following with 3, 5 and 6:
>
>
>LPARAMETER lnHWND
>
>DECLARE INTEGER ShowWindow IN Win32API;
>  INTEGER hwnd, INTEGER dflag
>
>= ShowWindow(lnHWND, 3)
>
>
>
>Does anyone know the syntax for ShowWindow to maximize the window and bring it to the top?
>
>Thanks

John,

I'm assuming that you're having a problem with maximizing a VFP window. This problem is directly (AFAIK) connected with the way VFP processes windows messages. In the above sample, 3 is SW_MAXIMIZE which should maximize the window.

A couple of readers of an article I had published in FoxPro Advisor, had a similar problem with the code I presented there. One thing that seemed to help was a call to BringWindowToTop() prior to issuing the ShowWindow() command.

Let me know if this helps.
George

Ubi caritas et amor, deus ibi est
Previous
Reply
Map
View

Click here to load this message in the networking platform