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
5
votes
2 answers
Is DwmIsCompositionEnabled still of use in Windows 8?
According to Enable and Control DWM Composition:
Note As of Windows 8, the information in this section is no longer
valid. DWM can no longer be programmatically disabled, nor is it
disabled when an application attempts to draw to the primary…

Jake Petroules
- 23,472
- 35
- 144
- 225
5
votes
0 answers
Direct3D 10 vsync issue in window mode with DWM disabled
I've got a problem with vsync on Direct3D 10 in window mode with DWM disabled.
We have an application, that render and present some output. It have to work in window mode and it have to produce stable 60 fps minimum.
One version of application is…

nicolausYes
- 633
- 8
- 33
4
votes
0 answers
MDI app not receiving WM_ACTIVATE and DWM messages from Windows 7 Taskbar
I have an MDI app written in Borland C++Builder 6 (upgrading to a newer version is not an option) and am using the ITaskbarList3 interface to integrate the MDI child windows into the Windows 7 taskbar. Following Microsoft's documentation, each MDI…

Remy Lebeau
- 555,201
- 31
- 458
- 770
4
votes
2 answers
How can I make a region on my taskbar thumbnail appear transparent in Windows 7?
I'm developing a program that makes use of Windows 7 (and Vista) taskbar features. Right now I have a custom bitmap that will be shown in the taskbar thumbnail. The bitmap is created programmatic and shows up successfully. The only 'problem' I'm…

jerone
- 16,206
- 4
- 39
- 57
4
votes
1 answer
How make sure Aero effect is enabled?
Is there any api or something that we make sure, Glass effect is already actived? In some codes that i saw, if DllNotFoundException throws, then they make sure it's not active or not exists. is there a better or standard way?
This is the solution…

Jalal
- 6,594
- 9
- 63
- 100
4
votes
4 answers
Delphi: How to remove subclasses in reverse order?
Mike Lischke's TThemeServices subclasses Application.Handle, so that it can receive broadcast notifications from Windows (i.e. WM_THEMECHANGED) when theming changes.
It subclasses the Application object's window:
FWindowHandle :=…

Ian Boyd
- 246,734
- 253
- 869
- 1,219
4
votes
0 answers
GDI+: Why is FillRectangle transparent on glass, while FillEllipse is opaque?
i'm drawing a rectangle, and an ellipse, on glass.
brush = new SolidBrush(0xFF000000); //solid (i.e. non-opaque) black
graphics.FillRectangle(brush, x, y, 30, 30);
graphics.FillEllipse(brush, x+33, y-15, 30, 30);
drawing with ellipse:…

Ian Boyd
- 246,734
- 253
- 869
- 1,219
4
votes
3 answers
How to use Win32 'DwmSetIconicThumbnail' from C# or VB.Net?
I would like to use the DwmSetIconicThumbnail function to set a static image for the thumbnail preview of my app.
As pointed in the reference link above, firstly is necessary to call DwmSetWindowAttribute to enable DWMWA_FORCE_ICONIC_REPRESENTATION…

ElektroStudios
- 19,105
- 33
- 200
- 417
4
votes
1 answer
Past DWM screen capture to TBitmap
I have found a demo application that is able to get a screenshot of a minimized/hidden window using DwmRegisterThumbnail. It works perfect but the result image is draw in the form itself instead of a TBitmap.
This is the code:
procedure…
user4805785
4
votes
2 answers
Is there a way to change the style of all scrollbars (Win10)?
Is there a way (API, dlls, msstyles ...) to modify the style (remove some elemets, change colors, width, ...) of all scrollbars that appear in Windows 10?
For example from this to this

Patrik
- 83
- 1
- 5
4
votes
1 answer
How to shift the start coordinates of the client area on the window?
I have refereed below article to draw a custom frame area with DWM.
Custom Window Frame Using DWM
After removing the standard frame, non client area is not exist in the frame.
void CMainFrame::OnNcCalcSize(BOOL bCalcValidRects, NCCALCSIZE_PARAMS*…

user2365346
- 377
- 1
- 2
- 17
4
votes
1 answer
Drawing in the extended frame gives strange colors
I have a window with extended frame made like this:
Custom Window Frame Using DWM
But anything drawn in the extended frame has very strange colors (except for white, the only color that stays the same), like this (ignore the messy content in the…

LHLaurini
- 1,737
- 17
- 31
4
votes
0 answers
How to get a desktop window image on a Unity3D-texture
Using dwmapi.dll it is possible to "project" a real-time image of a desktop window onto another windows hwnd (DwmRegisterThumbnail) as used by the activity bar previews of running apps in Windows.
Now I want to project this image onto a texture in…

Andreas Zita
- 7,232
- 6
- 54
- 115
4
votes
0 answers
How can I detect Aero glass effect is supported and turned on?
I have an WPF application which I wish it can enable blur when I set the background translucent. Currently I'm using Win32 API DwmIsCompositionEnabled to detect whether composition is enabled. This API works on OS which support Aero glass effect.…

K.F.Storm
- 41
- 1
- 2
4
votes
2 answers
How to correctly screencapture a specific window on Aero/DWM
Background info:
I have this MFC application I coded and been using for a long time that pretty much automatically saves screenshots to the hard disk when the user hits the Print Screen/Alt+Print Screen key. I have been putting off using anything…

enriquein
- 1,048
- 1
- 12
- 28