有什么办法可以阻止窗户晃动吗?

发布于 2024-12-25 12:21:27 字数 262 浏览 3 评论 0原文

在 Windows 7 和 Windows 8 桌面模式中,有一种方法可以让您的应用程序单独显示在屏幕上 - 摇动窗口。最近我发现了一个很棒的库,叫做 Cinder。它有一个非常好的教程,有一只猫在雪中的窗户里!)所以我想知道 - 如何从 C++ 代码捕获和使用窗口上的窗口抖动事件以制作雪球(我需要窗口“抖动”的当前方向和速度)?

In windows 7 and windows 8 desktop mode there is a way to make your app all alone on screen - shake the window. Recently I found about great lib called Cinder. It has a very good tutorial with a cat in a window with snow!) So I wondered - how to catch and use window shake event on windows from C++ code in order to make a snow ball (I need current direction and speed of window "shake")?

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

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

发布评论

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

评论(1

简单 2025-01-01 12:21:27

您的窗口将收到包含更新的窗口位置的 WM_MOVING 消息。

Your window will receive WM_MOVING messages with the updated window position.

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