Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Maximizing windows
Message
 
À
29/01/2001 20:15:48
Stephanie Caragos
Ebs Accounting Software Solutions
Cagayan de Oro City, Philippines
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00469597
Message ID:
00470077
Vues:
43
>Do you mean the default Window style as indicated by the short-cut link?
>
>------
>Yes. After the setup program makes an automatic shortcut on the desktop. When the user clicks this shortcut, the window will already be in maximize mode. :)

You have to be able to set the appropriate property of the shortcut link. There are a couple of ways of doing this. One method, is to use a DLL capable of accessing the property. Fox can't do this directly. My LNKFILES.DLL has a method to do this and it's available in the download section of the UT. It has a help file that contains all the information you'll need.

Another method would be to use the Windows Script Host to create or retrieve a WSHShortCut object and set its WindowStyle property to 3. The WSHShell object has a CreateShortCut method that will either create a new short cut, or return a reference to an existing one. Once hte WindowStyle property is set, you'd use the shortcut object's Save method to save your changes. Ed Rauh and I give examples of using the WSHShell object (and using this method) in the second of out series on the Windows Script Host. It was in the October issue of the VFUG newsletter, available on-line at www.vfug.org.
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