Question

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

Was it helpful?

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 .

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top