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.
  1. A

    Windows 7 SetLayeredWindowAttribute() fails when theme is changed from Aero theme to basic theme

    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...
Back
Top