Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do I set the windows wallpaper
Message
From
15/08/2000 14:00:04
 
General information
Forum:
Visual Basic
Category:
Other
Miscellaneous
Thread ID:
00405014
Message ID:
00405100
Views:
14
>How do I set the windows wallpaper? I am assuming it is an API call but...I don't know what it is.
Option Explicit

'**************************************
'Windows API/Global Declarations for :Daily Static
'**************************************

Declare Function SystemParametersInfo Lib "user32" Alias "SystemParametersInfoA" (ByVal uAction As Long, ByVal uparam As Long, ByVal lpvParam As Any, ByVal fuWinIni As Long) As Long

Public Const SPIF_UPDATEINIFILE = &H1
Public Const SPI_SETDESKWALLPAPER = 20
Public Const SPIF_SENDWININICHANGE = &H2

public function CWPaper(strNewPaperWithPath as string)
    Call SystemParametersInfo(SPI_SETDESKWALLPAPER, 0&, strNewPaperWithPath, SPIF_UPDATEINIFILE Or SPIF_SENDWININICHANGE)
end function
TWH
~Joe Johnston USA

"If ye love wealth better than liberty, the tranquility of servitude better than the animated contest of freedom, go home from us in peace. We ask not your counsel or arms. Crouch down and lick the hands which feed you. May your chains set lightly upon you, and may posterity forget that ye were our countrymen."
~Samuel Adams

Previous
Reply
Map
View

Click here to load this message in the networking platform