Results 1 to 4 of 4

Thread: changing desktop wallpaper to html file

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Mar 2000
    Location
    Pittsburgh, PA
    Posts
    329

    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]

  2. #2
    Lively Member
    Join Date
    Nov 1999
    Posts
    98
    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...

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Mar 2000
    Location
    Pittsburgh, PA
    Posts
    329
    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.)

  4. #4
    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
  •  



Click Here to Expand Forum to Full Width