Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DeskTop WallPaper
Message
De
29/10/2001 17:20:43
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00574594
Message ID:
00574767
Vues:
23
This message has been marked as the solution to the initial question of the thread.
>Hi,
>
>are there any functions to manage the windows wallpaper or the icons assosiated to a shortcut from within VFP ?
>
>thanks
>fabian

This should work for the desktop wallpaper:
DECLARE SHORT SystemParametersInfo IN WIN32API ;
   INTEGER uiAction, ;
   INTEGER uiParam, ;
   STRING @ pVoid, ;
   INTEGER fWinINI
#DEFINE SPI_SETDESKWALLPAPER	20
#DEFINE SPIF_UPDATEINIFILE	1

lcFile = "C:\Winnt\Gone Fishing.bmp"

=SystemParametersInfo(SPI_SETDESKWALLPAPER, 0, @lcFile, SPIF_UPDATEINIFILE)
For the icons look at the WshShortcut object, IconLocation property.
HTH
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform