Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP6: Minimize a top level app
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00579279
Message ID:
00580573
Vues:
26
>>declare long ShellExecute in "shell32.dll" ;
>> long hwnd, string lpszOp, ;
>> string lpszFile, string lpszParams, ;
>> string lpszDir, long nShowCmd
>>
>>ShellExecute(0,'open','c:\mypath\myapp.exe',0,0,SW_SHOWMINIMIZED)Cetin
>
>I tried this and it doesn't work on either of my applications. They are top-level apps with a minimized button activated. I even tried sending a parameter to the EXE to set the WindowState in the Init and that hasn't worked.

David,

Something's happening within the app itself. I just completed an SDI application, and tried to use the method above, the Shell object from the WSH and the VFP RUN command and was able to start the application minimized in each case.
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