Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DeskTop WallPaper
Message
From
29/10/2001 17:20:43
 
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00574594
Message ID:
00574767
Views:
22
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
Previous
Reply
Map
View

Click here to load this message in the networking platform