张志强 发表于 2013-7-2 13:35:28

如何利用API函数改变Windows桌面背景?

淡写轻描 发表于 2013-7-2 13:40:22

*API函数声明Const SPI_SETDESKWALLPAPER = 20 Const SPIF_UPDATEINIFILE = &H1 Declare Function SystemParametersInfo Lib "user32" Alias "SystemParametersInfoA" (ByVal uAction As Long, ByVal uParam As Long, ByVal lpvParam As Any, ByVal fuWinIni As Long) As Long 注释:调用Call SystemParametersInfo(SPI_SETDESKWALLPAPER, 0, "C:windowsClouds.bmp", SPIF_UPDATEINIFILE)
页: [1]
查看完整版本: 如何利用API函数改变Windows桌面背景?