Windows xp 将壁纸更改为网页
为了完成本手册,我只需在更改壁纸对话框中选择一个 html 文件,tada 就可以工作了..
但是如果我想从代码中执行此操作,我必须更改哪些 api 调用/注册表键?
我尝试了这个 SystemParametersInfo (WinAPI) 不起作用,我发现“HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Desktop\General\Wallpaper”和“HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Themes\LastTheme\Wallpaper”是更改为 html 页面..但仅将其编辑为代码不会更改壁纸..
To do this manual i just pick a html file in the change wallpaper dialog and tada works..
but if i want to do this from code what api calls / reg keys must i change?
Iv tryed this SystemParametersInfo (WinAPI) didnt work and i have found out that "HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Desktop\General\Wallpaper" and "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Themes\LastTheme\Wallpaper" are changed to the html page.. but just editing those to from code does not change the wallpaper..
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
为了使用 HTML 作为壁纸,需要首先启用 ActiveDesktop。假设情况已经如此,则 IActiveDesktop 界面 有一个 <有一个 href="http://msdn.microsoft.com/en-us/library/bb776362.aspx" rel="nofollow noreferrer">SetWallpaper() 方法可用。请参阅 MSDN 的“使用活动桌面对象”文章如何访问 IActiveDesktop。
In order to use HTML as wallpaper, ActiveDesktop needs to be enabled first. Assuming that is already the case, then the IActiveDesktop interface has a SetWallpaper() method available. Have a look at MSDN's "Using the Active Desktop Object" article for how to access IActiveDesktop.