whlook

  使用SystemParametersInfoA接口来更换windows的壁纸,虽然挺好用,但是我想写一个显示GIF壁纸的程序,想法是将GIF的每一个帧连续切换显示,奈何该接口设置壁纸的时间太长,达不到快速切换的效果。

  该接口的用法:

#include <windows.h>
#include <iostream>
#include <string>
#include <sstream>
------------------------------------
stringstream imgPath;

imgPath<<"path\\img.jpg";

SystemParameteersInfoA(SPI_SETDESKWALLPAPER, 0, (PVOID)imgPath.str().c_str(), SPIF_UPDATEINIFILE | SPIF_SENDCHANGE);

分类:

技术点:

相关文章:

  • 2022-03-06
  • 2021-04-21
  • 2021-05-16
  • 2021-05-20
  • 2021-05-31
  • 2021-08-29
  • 2021-04-23
  • 2022-02-08
猜你喜欢
  • 2021-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-03
  • 2022-01-24
  • 2021-06-29
相关资源
相似解决方案