I have a modal dialog I'm creating with MFC. When it appears, the Aero theme does it's fade-in transition for a new window appearing. In my particular case I'm switching immediately from one dialog to another and the fade effect is distracting. Is there a way it can be disabled so the window immediately appears, like it does when Aero is disabled, but without switching Aero off completely?
+1
A:
The DwmSetWindowAttribute
function might be able to help you. It lets you modify a number of window attributes related to the DWM. In particular, the DWMWA_TRANSITIONS_FORCEDISABLED
attribute mentions "Enable or forcibly disable DWM transitions", which just might do the trick.
casablanca
2010-10-09 17:32:45
Just be sure to use some form of soft linking, whether delay loading or explicit `GetProcAddress`, because DWM functions won't exist on pre-Vista windows.
Ben Voigt
2010-10-09 17:36:55
Thanks, that did the trick.
AshleysBrain
2010-10-09 17:57:06