如何将视频设置为壁纸

发布于 2024-12-03 10:12:40 字数 71 浏览 1 评论 0原文

我正在使用 MFC 开发一个应用程序。是否可以将视频设置为桌面图标后面的壁纸?

谢谢。

阿南·G

I'm developing an application using MFC. Is it possible to set video as a wall paper behind the desktop icons?

Thank you.

Anam G

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

清晰传感 2024-12-10 10:12:40

是的,我相信使用 DirectX 就可以。我从未尝试过做这样的事情,所以我无法告诉你从哪里开始。我可以告诉你 VLC 媒体播放器 可以如此处所示。 VLC 是开源的,所以如果您喜欢冒险,您可以深入研究他们的源代码,看看他们是如何做到的。

Yes you can with DirectX I believe. I've never tried to do such a thing so I couldn't tell you where to start. I can tell you that VLC Media Player does it as shown here. VLC is open source so if you feel adventurous you could dive into their source code to see how they do it.

动次打次papapa 2024-12-10 10:12:40

简短的回答:不,没有官方的方法可以做到这一点。

更细致的答案:在 Vista 之前的 Windows 版本中,有一种称为“活动桌面”的东西。有了这个,您几乎可以将任何东西设置为桌面背景。然而,它正在被逐步淘汰,不再是做你想做的事情的真正选择。让它工作的唯一方法是通过像 vlc 那样的黑客技术 - 获取桌面窗口句柄并对它做一些令人讨厌的事情。最新版本的 Windows 可以更好地防止此类愚蠢行为。可能有一些方法可以绕过这些保护,但最终您将陷入与 Windows 开发人员的军备竞赛。因此,即使在细致入微的版本中,答案仍然是“不,没有可靠且受支持的方法来做到这一点,因此,你不应该这样做”。任何这样做的应用程序都应该并且经常被(并且正确地)归类为恶意软件的流氓软件。

Short answer: no, there is no official way of doing this.

More nuanced answer: In Windows versions before Vista, there was something called 'active desktop'. With this you could set pretty much anything to be your desktop background. However it's being phased out and not a real option anymore for doing what you want. The only way to get it to work is through hackery like what vlc does - get the desktop window handle and do nasty things to it. Recent versions of Windows have better protection against such tomfoolery; there are probably ways around those protections but then you'll end up in an arms race with the Windows developers. So, even in the nuanced version, the answer remains 'no there is no reliable and supported way of doing it, and as such, you shouldn't do it'. Any application that does, should be and often is (and rightly so) classified as rogue software of malware.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文