I want to disable the shadow effect on a specific aero window. All I have is the HWND of this window, is this possible?
Asked
Active
Viewed 1,530 times
4
-
What language do you want to use? C#, VB.Net, C++, etc? – Chris Laplante Sep 12 '10 at 22:17
-
@SimpleCoder: Does not really matter; the Windows API looks the same from any language. – Andreas Rejbrand Sep 12 '10 at 22:18
-
I wanted to know so I could provide a code example without the need for the asker to translate it. – Chris Laplante Sep 12 '10 at 22:19
-
Yes it doesn't matter because its the winapi. C# would be good – Don Sep 12 '10 at 22:20
-
@Don- Thanks, I think there is a function to do this – Chris Laplante Sep 12 '10 at 22:21
-
I could not find a function to do it – Chris Laplante Sep 12 '10 at 22:28
1 Answers
1
The shadow is defined by the theme currently used by the OS. You cannot disable it for one window only. You can change the theme and disable shadows, but it will be a system-wide change, not specific to one window.
In your case, one of the best approached would be creating your own window structure (starting from a borderless window) that will have similar transparency properties as Aero. This will not be an easy task, but certainly achievable.

Den
- 16,686
- 4
- 47
- 87
-
-
That's going to be a system-wide change that will affect all applications. That's the way the composition engine works. – Den Sep 12 '10 at 22:33