You are using an out of date browser. It may not display this or other websites correctly. You should upgrade or use an alternative browser.
ws_ex_layered
About this tag
The WS_EX_LAYERED extended window style enables layered windows, which support transparency and visual effects like fading. In Windows 7, switching from the Aero theme to the Basic theme can cause the SetLayeredWindowAttributes API to fail with error code 317, even though the WS_EX_LAYERED attribute remains set on the window. This issue typically affects applications that create popup windows with WS_EX_TOOLWINDOW and WS_EX_LAYERED styles. The problem occurs only after a system restart when changing from Aero to Basic, and reverting to Aero restores functionality. Discussions focus on troubleshooting this theme-dependent behavior and finding workarounds for layered window effects in non-Aero environments.
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...
aero theme
application error
basic theme
error
fading
mfc application
popup
restart
setlayeredwindowattribute
theme change
user interface
windows 7
windows api
windows attributes
ws_ex_layered
ws_ex_toolwindow