Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS Tech Support » About transparent Window Collapse All
Subject Author Date
tera t May 25, 2007 - 2:44 AM

Hello

I used SetLayeredWindowAttributes.
I was able to use transparent Window.

Q1, Is not there no problem even if I use it in Prof-UIS?

Q2, Do not I understand an advantage of transparent Window of Vista well?
Please teach it if you like

Thanks,

Technical Support May 26, 2007 - 10:53 AM

The SetLayeredAttributes() Win32 API function works only for windows with the WS_EX_LAYERED extended window style. Did you apply this style using CWnd::ModifyStyleEx()? The layered windows are supported starting from Windows 2000. We widely use these windows in Prof-UIS (e.g popup window shadows and drop target markers for control bars. Prof-UIS cannot affect any layered windows implemented in your code.

The desktop on Windows Vista support two modes: classic Windows XP and Desktop Window Manager (DWM). The latter provides translucent non-client areas for pop-up windows on the desktop only. The desktop image is rendered to the background in this mode. This allows DWM to compose translucent non-client areas and big smooth shadows. It is also possible to make the window client area translucent. The window painting code under DWM should assume the background surface is already painted and contains translucent image pixels. So the window area should not be erased in this mode and only the content items should be drawn over generated by DWM background. The DWM can be set on/off for desktop or one window using the functions from the DWMAPI.DLL module. The following article describes general information about programming under DWM: http://www.codeproject.com/vista/VGGlassIntro.asp

tera t May 27, 2007 - 7:31 PM

Hi

Thank you for an answer.