Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Maximize program window
Message
 
À
27/07/2001 21:04:25
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00536729
Message ID:
00536925
Vues:
7
>>>I'm looking for a way to programmatically maximize a program window from VFP. I have an app that finds a client record, then opens a DDE link to GoldMine (a contact manager) and displays the same client record there. I then use SetForegroundWindow() call to set focus to GoldMine. Unfortunately, if GoldMine is minimized, focus is set to a minimized program and the user thinks nothing has happened.
>>>
>>>I searched the API docs in UT and saw the ShowWindow() call, but haven't been able to get it to work successfully and I can't find additional documentation anywhere.
>>>
>>>Thanks in advance.
>>
>>See API #12643 SetForegroundWindow at http://www.levelextreme.com/wconnect/wc.dll?FournierTransformation~2,31,Forum=0,18,9
>
>Thank you, but I already have the SetForegroundWindow() function working. It's documentation mentions the SendMessage() function but I have not been able to get it to work or to find a list of #DEFINE statements for it.

Try SW_MAXIMIZE (3) with ShowWindow().
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