Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. SystemParametersInfo

SystemParametersInfo

Scheduled Pinned Locked Moved C / C++ / MFC
help
5 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    Lior Shoval
    wrote on last edited by
    #1

    Hi. can anyone please help me find out why this code doesn't work: char* nextWpName = "mypic.jpg" SystemParametersInfo (SPI_SETDESKWALLPAPER,0,nextWpName,SPIF_UPDATEINIFILE); my wallpaper simply disappears and goes blank. help...

    G M 2 Replies Last reply
    0
    • L Lior Shoval

      Hi. can anyone please help me find out why this code doesn't work: char* nextWpName = "mypic.jpg" SystemParametersInfo (SPI_SETDESKWALLPAPER,0,nextWpName,SPIF_UPDATEINIFILE); my wallpaper simply disappears and goes blank. help...

      G Offline
      G Offline
      Gary R Wheeler
      wrote on last edited by
      #2

      You need to pass the full path to the file.


      Software Zen: delete this;

      L 1 Reply Last reply
      0
      • G Gary R Wheeler

        You need to pass the full path to the file.


        Software Zen: delete this;

        L Offline
        L Offline
        Lior Shoval
        wrote on last edited by
        #3

        Ofcourse I'm doing that... The code was only an example... try running it and see if it works for you

        R 1 Reply Last reply
        0
        • L Lior Shoval

          Ofcourse I'm doing that... The code was only an example... try running it and see if it works for you

          R Offline
          R Offline
          Rickard Andersson20
          wrote on last edited by
          #4

          Lior Shoval wrote: try running it and see if it works for you It didn't worked for me. I tested it on WinME and it didn't change to anything... hm.. weird... GetLastError returned 0 so... I don't know! :( Rickard Andersson@Suza Computing C# and C++ programmer from SWEDEN! UIN: 50302279 E-Mail: nikado@pc.nu Speciality: I love C#, ASP.NET and C++!

          1 Reply Last reply
          0
          • L Lior Shoval

            Hi. can anyone please help me find out why this code doesn't work: char* nextWpName = "mypic.jpg" SystemParametersInfo (SPI_SETDESKWALLPAPER,0,nextWpName,SPIF_UPDATEINIFILE); my wallpaper simply disappears and goes blank. help...

            M Offline
            M Offline
            Michael Dunn
            wrote on last edited by
            #5

            I think that you can only set a BMP wallpaper with that API. To use a JPG you need to turn on ActiveDesktop and use the IActiveDesktop interface to set a wallpaper. --Mike-- If it doesn't move and it should: WD-40. If it moves and it shouldn't: duct tape. 1ClickPicGrabber - Grab & organize pictures from your favorite web pages, with 1 click! My really out-of-date homepage Sonork-100.19012 Acid_Helm

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups