Hello, I am using Windows 7 Enterprise OS (32 bit). I have an mfc application which uses SetLayeredWindowAttribute() api to display fading effect for a window. The window to be displayed is popup window created with attributes WS_EX_TOOLWINDOW | WS_EX_LAYERED and parent NULL. The problem is when I switch from Aero theme to windows basic theme, SetLayeredWindowAttribute() fails with error code 317. When I again switch back to Aero, the application works fine. This happens only when I restart the system and switch from aero to basic theme. I have checked if changing theme to basic removes WS_EX_LAYERED attributes of all windows, but the attribute is still present. How to solve this problem? Thanks & Regards, Amrapali.