Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Maximize windowstate with win32api
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00273118
Message ID:
00273142
Vues:
30
>>>I can find a program with findwindow.
>>>Is there an api to maximize the program that i find with findwindow?
>>>Thanks.
>>
>>The function you're looking for is ShowWindow(). Pass the window handle returned by FindWindow() and 3 (SW_MAXIMIZE).
>
>Thanks George for this info.
>I have try it.Its run perfect.
>I dont want that the user runs the same applicaton second time.
>Thanks again

You're welcome. Please keep in mind, however, that FindWindow() is case sensitive and the title supplied must match exactly.

Just a suggestion, you might want to use SW_RESTORE (9). Also look at IsIconic(), that'll tell you whether or not it's on the task bar. If not, then SetForegroundWindow() could be called to bring it to the top of the Z order.
George

Ubi caritas et amor, deus ibi est
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform