views:

188

answers:

0

Hello,

I've forced with a possible bug feature of MFC Feature Pack under Windows Vista. It can be easily recreated:

  1. Create a new SDI app using MFC Feature Pack (with Ribbon based interface). You can also add some floating panels if you want;
  2. Do not change anything, just build a Release;
  3. Close the Visual Studio, run the application and turn your computer into Sleep Mode (Hibernation).
  4. Restore the computer from the sleep mode and you will see that the application did not restore well: it does not correctly display window's caption; it is impossible to increase the window size (it cuts the frame), etc.

Did anyone forced with this behavior?

I'm using Windows Vista Business SP2 and getting the same behavior on my desktop and laptop. Unfortunately did not tested under XP or another platform.

PS: I've solved the mentioned problem for toolbar based application by switching the visual style to any other and back on receiving WM_POWERBROADCAST. But the trick does not work for ribbon based application.