For questions about the Desktop Window Manager (DWM), which handles desktop composition in Windows Vista and later versions. For questions about the Dynamic Window Manager (DWM) for X, use [x-dwm].
Questions tagged [dwm]
255 questions
55
votes
3 answers
Vista/7: How to get glass color?
How do you use DwmGetColorizationColor?
The documentation says it returns two values:
a 32-bit 0xAARRGGBB containing the color used for glass composition
a boolean parameter that is true "if the color is an opaque blend" (whatever that…

Ian Boyd
- 246,734
- 253
- 869
- 1,219
42
votes
5 answers
GetWindowRect returns a size including "invisible" borders
I'm working on an app that positions windows on the screen in a grid style. When Running this on Windows 10, there is a huge gap between the windows. Further investigation shows that GetWindowRect is returning unexpected values, including an…

Deanna
- 23,876
- 7
- 71
- 156
33
votes
3 answers
How do you set the glass blend colour on Windows 10?
Using the undocumented SetWindowCompositionAttribute API on Windows 10, it's possible to enable glass for a window. The glass is white or clear, as seen in this screenshot:
However, the Windows 10 Start menu and the notification center, which both…

David
- 13,360
- 7
- 66
- 130
31
votes
6 answers
Aero: How to draw solid (opaque) colors on glass?
Using GDI+ to draw various colors:
brush = new SolidBrush(color);
graphics.FillRectangle(brush, x, y, width, height);
You'll notice that no opaque color shows properly on glass:
How do i draw solid colors on glass?
You'll also notice that a fully…

Ian Boyd
- 246,734
- 253
- 869
- 1,219
31
votes
3 answers
Windows Aero: What color to paint to make "glass" appear?
What color must i paint in the client area in order to make glass appear?
i've extended the frame of my form into the client area using:
DwmExtendFrameIntoClientArea(self.Handle, margins);
i cannot find any official documentation from Microsoft on…

Ian Boyd
- 246,734
- 253
- 869
- 1,219
27
votes
4 answers
How to fix DWMAPI.DLL delay-load dependency under WinXP?
I have built a .dll under WinXP that claims it can't find DWMAPI.DLL when it's loaded. The problem is that this DLL is a Vista DLL, and this a known issue for XP users that have IE7 installed. The recommendation is to uninstall IE7 or repair the…

Jim Buck
- 20,482
- 11
- 57
- 74
26
votes
11 answers
Maven Java EE Configuration Marker with Java Server Faces 1.2
I'm having a weird configuration problem with Maven in Eclipse. Although I can build the project and deploy it to tomcat without any errors, The Marker tab keeps showing the following message:
[-] Maven Java EE Configuration Problem
(x) JavaServer…

Tarek
- 3,080
- 5
- 38
- 54
26
votes
3 answers
OpenGL flickering/damaged with window resize and DWM active
I have a wxWidgets application that has a number of child opengl windows. I'm using my own GL canvas class, not the wx one. The windows share their OpenGL context.
I don't think the fact it is wxwidgets is really relevant here.
The opengl windows…

Pete
- 4,784
- 26
- 33
25
votes
4 answers
Delphi support for Aero Glass and the DoubleBuffered property - what is going on and how do we use them?
I am confused by Delphi 2009/2010 support for the Aero Theme Glass features in Windows, and by what, exactly DoubleBuffered means, and what it has to do with Aero glass. I have found that DoubleBuffered is not only a property in the VCL, it also is…

Warren P
- 65,725
- 40
- 181
- 316
20
votes
2 answers
Qt: Erase background (Windows Aero Glass)
Update
see Using Blur Behind on Windows for an example of using Qt and DWM.alt text http://labs.trolltech.com/blogs/wp-content/uploads/2009/09/blurbehind2.png
Original question:
I want to create a Windows Aero Glass window with Qt, now it looks…

Andrew T
- 5,549
- 7
- 43
- 55
17
votes
1 answer
Correct way to wait for VBLANK on windows 10 in windowed mode
What is the correct way to wait for VBLANK to present on windows 10 in windowed mode? Currently I'm doing the following:
D3DKMTWaitForVerticalBlankEvent(&waitData);
swapchain->Present(0, 0);
However this leads to occasional stutter. My current…

sudowoodo
- 473
- 4
- 14
16
votes
4 answers
Google Chrome style tabs on glass in Delphi
I am trying to implement Google Chrome style tabs, in Windows 7, in a Delphi application.
The elements of this are:
tabs may extend into the non-client area as they do in google chrome itself.
draws properly on Vista and Windows 7 when glass is…

Warren P
- 65,725
- 40
- 181
- 316
16
votes
2 answers
How to get a thumbnail of a window in C#?
How do you go about getting a thumbnail of a window, like Windows 7 superbar preview, or Aero flip? Note that I do not want a screenshot of the application, there is a way in DWM to get this information.
I would like a C# way of doing this.
Thanks

esac
- 24,099
- 38
- 122
- 179
14
votes
1 answer
Is it possible to prevent tearing artifacts when drawing using GDI on a window with DWM composition?
I am drawing an animation using double-buffered GDI on a window, on a system where DWM composition is enabled, and seeing clearly visible tearing onscreen. Is there a way to prevent this?
Details
The animation takes the same image, and moves it…

David
- 13,360
- 7
- 66
- 130
12
votes
2 answers
Native Aero Blur without Glass Effect on Borderless WPF Window
I am aware that similar questions have been asked and answered. Mine, however, is a three-part question.
For the purposes of this question, keep the following in mind:
I am an amateur, early college undergraduate studying Computer Science. I am…

Tommy Crews
- 153
- 1
- 2
- 10