+ Reply to Thread
Results 1 to 2 of 2

Thread: change desktop background image C++

  1. #1
    Junior Member
    Join Date
    Feb 2012
    Posts
    29

    change desktop background image C++

    Using C++, how to change desktop background image? I want plain example of this.

  2. #2
    Junior Member
    Join Date
    Feb 2012
    Posts
    48
    Code:
    void SetDesktopBackground(CString strImagePath)
    {
        BOOL bResult = SystemParametersInfoA(SPI_SETDESKWALLPAPER, 0, strImagePath.GetBuffer(0), SPIF_SENDCHANGE | SPIF_UPDATEINIFILE) ;
    }
    Enjoy!

+ Reply to Thread

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts