Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ShowWindow
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Titre:
Divers
Thread ID:
00278675
Message ID:
00278736
Vues:
16
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform