Vista Basic 主题功能区问题

发布于 2024-08-25 23:41:31 字数 451 浏览 3 评论 0原文

在 Vista 下,当处于 Basic 主题时,调用 IUIFramework::Destroy() 后,Vista 主题丢失,并且放大窗口不会显示在初始区域之外。

您可以使用 SimpleRibbon SDK 示例轻松重现它。在 simpleribbon.cpp 中,插入 WndProc 开关块:

case WM_KEYUP:
   DestroyFramework();
   InvalidateRect(hWnd, NULL, TRUE);
   break;

编译、运行、敲击一个键并尝试在 Vista Basic 主题中放大(在 Win7 或 Vista aero 或 Windows classic 中没有问题)。

如何解决?

[编辑]

我会对一些要调查的曲目感到满意,我不期望有一个成熟的解决方案:-)

Under Vista, when in Basic theme, after calling IUIFramework::Destroy() the Vista theme is lost, and enlarging the window does not display outside of the initial area.

You can repro it easily with the SimpleRibbon SDK sample. In simpleribbon.cpp, insert in the WndProc switch block:

case WM_KEYUP:
   DestroyFramework();
   InvalidateRect(hWnd, NULL, TRUE);
   break;

Compile, run, hit a key and try to enlarge in Vista Basic Theme (no problem in Win7 or Vista aero or Windows classic).

How to work around?

[edit]

I would be satisfied with some tracks to investigate, I don't expect a cooked solution :-)

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

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

发布评论

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

评论(1

孤君无依 2024-09-01 23:41:31

功能区控件似乎设置了一个窗口区域,但忘记在功能区销毁时将其删除。

在 IUIFramework::Destroy() 返回时设置空窗口区域似乎可以解决该问题。

The ribbon control seems to set a window region and forget to remove it at ribbon destruction.

Setting a null window region on return of IUIFramework::Destroy() seems to solve the problem .

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