Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Change Wallpaper

Status
Not open for further replies.

Baixinha

Programmer
Dec 27, 2000
122
BR
Is it possible to change the wallpaper when the user select one? How can I do this?


Thanks for any help,
 
I have never used it, don't know how it works etc.

but do a search on: IActiveDesktop and SetWallPaper on the MSDN or the internet (or maybe even the forums here).
Greetings,
Rick
 
You might want to take a look at the SystemParamertersInfo API. A sample would be something like the following:

Public Declare Function SystemParametersInfo _
Lib "user32" Alias "SystemParametersInfoA" _
(ByVal uAction As Long, ByVal uParam As Long, _
ByVal lpvParam As String, ByVal fuWinIni As Long) _
As Long

FileName = "C:\...\...\YourImageFile.Ext"
Ret = SystemParametersInfo(SPI_SETDESKWALLPAPER, 0&, FileName, SPIF_UPDATEINIFILE Or SPIF_SENDWININICHANGE) Good Luck
--------------
As a circle of light increases so does the circumference of darkness around it. - Albert Einstein
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top