开发者

Vista Basic theme ribbon issue

开发者 https://www.devze.com 2022-12-23 13:01 出处:网络
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.

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 :-)


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 .

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号