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
1
vote
2 answers
Preventing Registry.GetValue overflow
I'm trying to get the DWM colorizationColor using:
Microsoft.Win32.Registry.CurrentUser.OpenSubKey(@"Software\Microsoft\Windows\DWM").GetValue("ColorizationColor")
however it is returning -2144154163 (the real value is 2150813133)
I thinks this…

David Fernández
- 494
- 1
- 6
- 22
1
vote
1 answer
Frameless window with min/max/close buttons (Windows)
On Mac there is a window flag/call: WindowTitleHidden + [nativeWindow setTitlebarAppearsTransparent:YES]
which basically makes the title bar to be "embedded" inside the window itself instead of creating a frame that "holds" the window. Like…

alexandernst
- 14,352
- 22
- 97
- 197
1
vote
1 answer
Java - How to detect the vertical displacement of some multimonitor setups?
In many multimonitor setups featuring monitors of varying stand heights, the vertical positions of the monitors can be adjusted in software so that their graphics align correctly. A vertical displacement is added to the Windows mouse coordinates to…

Syd Lambert
- 1,415
- 14
- 16
1
vote
1 answer
Caption Buttons not respond to mouse clicks after Non - Client painting with DWM in Delphi
I am painting my Application's non-client area with the help of Desktop Window Manager, adding a new button for testing purposes.
After compiling, my custom button is clickable, but the default caption buttons (Minimize, Maximize and Close) do…

Blueeyes789
- 543
- 6
- 18
1
vote
1 answer
How to make dwmapi (Desktop Windows Manager API) work in Windows XP?
I'm doing a windows application using dwmapi.dll on C# and it's not working in windows XP because XP didn't support Desktop Windows Manager API (dwmapi.dll). It's only supported in Vista and Win 7. Anyone knows how to make dwmapi (Desktop Windows…

jron
- 11
- 3
1
vote
1 answer
When to use DwmExtendFrameIntoClientArea?
As we know, several modern applications (IE9, Firefox 4, Chrome, Paint.NET, etc.) use DwmExtendFrameIntoClientArea for the Aero glass effect.
What type of applications should you really use this for, though? For browsers I can understand minimizing…

Jake Petroules
- 23,472
- 35
- 144
- 225
1
vote
0 answers
Windows 10 Aero DWM Window Drawing Issue
A picture is worth a thousand words, so:
I use DwmExtendFrameIntoClientArea(this.Handle, AeroMargins); Where AeroMargins is a structure with Left, Right, Top, and Bottom properties. It works fine on Vista, Windows 7, and Windows 8 and 8.1.
However…

Fit Dev
- 3,413
- 3
- 30
- 54
1
vote
1 answer
ScreenCapture on Windows 8 with dwm and aero
I have on remote assistence app coded in Delphi, and I need to take one screenshot of the whole screen without show my active form... If I set the AlphaBlend := true then when I take de screenshot the form hides sucessfully, but only if the aero is…

user2581705
- 21
- 3
1
vote
2 answers
Windows Forms Glass Effect, Make ImageBox transparent
I have a windows form application, and I have extended the window's frame into the client area using DwmExtendFrameIntoClientArea to get the glass effect.
Now I'm trying to show a transparent PNG image in a picture box, however the background shows…

ace
- 2,141
- 7
- 29
- 39
1
vote
0 answers
Flickering UI problems - what causes the DWM in windows 7 to decide to refresh immediately upon calling SetWindowPos?
I have a custom tabbed style control, and internally it works by showing or hiding the relevant page when you click on a tab.
The basic order of things that happen when you click a tab is
Bring relevant page to front
Show relevant page (by calling…

David
- 287
- 3
- 14
1
vote
1 answer
VBS for opening the Windows 10 task view
I have an Elan touchpad on my notebook. Sadly the driver does not support the new "task view" feature, only executing external programs.
I already found out: it's not possible to send the WIN key via vbs and also this solution suggested
Set objShell…

quadronom
- 652
- 1
- 5
- 15
1
vote
1 answer
Change the taskbar color of Windows 10
Is it possible to change the color of the taskbar programmatically? I want to change the color to solid (opaque) black but ONLY for the taskbar (That's the reason why I can't use the DwmSetColorizationParameters function. It changes the color for…

Patrik
- 83
- 1
- 5
1
vote
1 answer
Delay Loading DWMAPI on Windows XP and CodeBlocks
I have a project that I'm been fighting to build for Windows (XP) for a month solid now. The project uses gtkmm-3, C++, and the latest GCC-TDM compiler. My IDE is CodeBlocks 13.14.
I'm making progress, however, I am now getting hung up on this error…

CodeMouse92
- 6,840
- 14
- 73
- 130
1
vote
1 answer
C++ WinAPI Display bitmaps on the custom window frame using DWM
I have created a window with custom window frame using DWM with the reference to Custom Window Frame Using DWM. I tried to add a bitmap to the title bar using StretchBlt. Yet, it did not show properly. The image will be brightened if it is drawn on…

William Chan
- 277
- 2
- 12
1
vote
1 answer
DWM API: Incorrect destination position on some computers
I'm using DWM API for displaying thumbnail of other window in my WPF app. On most computers it works fine, but on some computers my thumbnail in app is mispositioned and smaller (it's moved a few pixels left+up and it is about 30% smaller).
For…

Dominik Palo
- 2,873
- 4
- 29
- 52