2016-10-13 4 views
0

どうすれば変更できますか?WindowsのC++でデスクトップのの背景画像ですか?Windowsで背景画像を変更する

または、このプロセスでcmdで使用するコマンドはありますか。

+0

何の背景画像ですか? – amchacon

+0

デスクトップの壁紙 – Enes

+2

可能な複製:http://stackoverflow.com/questions/14186400/setting-wallpaper-with-win-api – DeathTails

答えて

2

SystemParametersInfo()でデスクトップの背景イメージを変更できます。

#include "stdafx.h" 
#include <windows.h> 

int main() { 

    int return_value = SystemParametersInfo(SPI_SETDESKWALLPAPER, 0, L"d:/flower1.jpg", SPIF_UPDATEINIFILE); 

    return 0; 
}