|
-
Apr 1st, 2000, 08:48 AM
#1
Thread Starter
Hyperactive Member
changing desktop wallpaper to html file
i want to change the desktop background to an html file i made. this code works fine with bmp files but doesn't change the registry when i use a html file. what is wrong?
i am using theis code:
Option Explicit
Private 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
Private Const SPI_SETDESKWALLPAPER = 20
Private Const SPIF_UPDATEINIFILE = 1
Private Sub Command1_Click()
SystemParametersInfo SPI_SETDESKWALLPAPER, _
0, "c:\windows\desktop\test.html", SPIF_UPDATEINIFILE
End Sub
thanks in advance.
[Edited by HAVocINCARNATE29 on 04-01-2000 at 08:50 PM]
-
Apr 2nd, 2000, 11:30 PM
#2
Lively Member
i think this might answer your question:
you have to have Active Desktop enabled to use anything else other than bmp as your desktop wallpaper.
if not then i don't know...
-
Apr 3rd, 2000, 05:46 AM
#3
Thread Starter
Hyperactive Member
i do have active desktop on, but the registry won't change when i use an html file. (the win.ini file does though, but it changes back to whatever it used to be when i restart.)
-
Apr 7th, 2000, 11:05 PM
#4
Member
I am having the same problem. My Active Desktop in Windows 2000 Professional is turned on, but setting the desktop to an HTML file does nothing using the SystemParametersInfo call. Unfornately, this is a key feature of my program . Help!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|