介绍:
本程序主要根据百度个性首页换肤功能的数据演变而来实现一个在线切换壁纸的功能。
效果图:
![](https://i-blog.csdnimg.cn/blog_migrate/00ea982a585845f590cf190bb99d5983.gif)
主要用到的API
1 [DllImport("user32.dll", EntryPoint = "SystemParametersInfo")] 2 public static extern int SystemParametersInfo( 3 int uAction, 4 int uParam, 5 string lpvParam, 6 int fuWinIni 7 );
大概思路
1,请求百度地址,获取左侧列表
2,利用 Newtonsoft.Json 解析返回的数据
3,根据左侧选中事件绑定右侧ListView
4,单击右键选择设置桌面背景