Windows XP将壁纸更改为网页

时间:2009-09-21 20:45:21

标签: windows registry wallpaper

要做这个手册,我只需在更改壁纸对话框中选择一个html文件,然后tada工作..

但如果我想从代码执行此操作,必须更改api调用/ reg键吗?

我试过这个SystemParametersInfo(WinAPI)没有用,我发现“HKEY_CURRENT_USER \ Software \ Microsoft \ Internet Explorer \ Desktop \ General \ Wallpaper”和“HKEY_CURRENT_USER \ Software \ Microsoft \ Windows \ CurrentVersion \ Themes \ LastTheme \壁纸“已更改为html页面..但只是从代码中编辑它们不会更改壁纸..

1 个答案:

答案 0 :(得分:1)

要将HTML用作壁纸,需要首先启用ActiveDesktop。假设已经是这种情况,那么IActiveDesktop interfaceSetWallpaper() method可用。有关如何访问IActiveDesktop的文章,请查看MSDN的“Using the Active Desktop Object”文章。