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
0
votes
2 answers
Cycling through array goes over the count of elements
I have this array:
static const Layout layouts[] = {
{ "[]=", tile },
{ "><>", NULL },
{ "[M]", monocle },
};
This function should cycle through the array:
int
cyclelayout(const Arg *arg) {
static unsigned short int…

Ari Malinen
- 576
- 2
- 6
- 20
0
votes
0 answers
Dwm.exe memory leak when resizing simple WinForm application
I created very simple Winform application in VS2010 (just a standard template File->New->Project->C# Windows Forms Application).
After several form resizes the system memory consumption can increase by 1Gb or more! And this memory is not returned to…

Aleksei Petrenko
- 6,698
- 10
- 53
- 87
0
votes
0 answers
How to keep aero glass when handling WM_NCPAINT WinEvent
I’m handling the WM_NCPAINT WinEvent for draw a pushbutton at the non client area of my window. But as you can see at the following image, the aero glass border has disappeared, and my window has no border. So I've found this answer: Handling…

Antonio Dias
- 2,751
- 20
- 40
0
votes
2 answers
Remove the standard window frame in C++ Win32
I saw this documentation on MSDN.
I am trying to remove the standard frame of the window. I successfully extended the frame into client area, but the following snippet does not work. My window looks exactly the same as without it....
if (message ==…

Victor
- 13,914
- 19
- 78
- 147
0
votes
1 answer
DwmExtendFrameIntoClientArea in C++
I have the following C++ code:
LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
{
bool fCallDWP = true;
BOOL fDwmEnabled = FALSE;
LRESULT lRet = 0;
HRESULT hr = S_OK;
MARGINS margins;
…

Victor
- 13,914
- 19
- 78
- 147
0
votes
0 answers
Covnersion from System::IntPtr to HWND
I have the following C++ code:
HRESULT hr = S_OK;
hr = DwmExtendFrameIntoClientArea(this->Handle, &margins);
But, when I try to compile I get the following error:
error C2664: 'DwmExtendFrameIntoClientArea' : cannot convert parameter 1 from…

Victor
- 13,914
- 19
- 78
- 147
0
votes
3 answers
Using WinAPI & DWMApi in ANSI C
I've got a question regarding writing applications for Windows. Can I use WinAPI and DWMApi (aero glass, ribbon, etc.) when programming in ANSI C? I'm looking at MSDN right now and they use c++.

Lucas
- 99
- 1
- 4
0
votes
1 answer
Is there any way to fix the side effect of "DwmEnableBlurBehindWindow" in VC6.0?
I have met an exactly problem which metioned in the MSDN Topic:DWM Blur Behind Overview.
After DwmEnableBlurBehindWindow was called, the client area became a beautiful glass, but unfortunatly, all of black text on the controls(BUTTONs,EDITs,STATICs…

Jimson
- 81
- 2
- 10
-1
votes
0 answers
C# DwmApi Thumbnail to Stream
Is it possible to convert captured image to stream using DwmApi with C#?
Or is it possible to convert the captured image to bitmap format and stream it with…

Music Boy
- 1
- 3
-1
votes
1 answer
Error Linking GLEW and DWMAPI to MSYS MinGW
I am having trouble compiling a SDL+OpenGL program using gcc. I attempted to compile the program using this command:
g++ -static -o bin/main src/main.cpp src/core/*.cpp -I src/core/include -lglew32 sdl2-config --cflags --static-libs
However this…

PB020
- 45
- 6
-1
votes
1 answer
Delphi Application Hangs
I have a working application that needs to clear and setup very large buffers from time to time. Sometimes the operation takes longer than 5 seconds to complete and then Desktop Window Manager times out and declares the application to be hung.
Is…

Seti Net
- 693
- 1
- 7
- 24
-1
votes
1 answer
Mirror the specific screen into a WPF control
It is possible to show copy of specific display in a WPF control? I need to mirror display connected to the computer into a box in my APP (something like PIP on TVs). Currently I'm using the DWM API and DwmRegisterThumbnail functionality, it works…

Dominik Palo
- 2,873
- 4
- 29
- 52
-1
votes
1 answer
DWM, how to not render a window?
My application is a fullscreen window rendering a specified window or the desktop.
I would like to know if it's possible to fetch the window bitmap (like i'm already doing) but without the render of my window's application ?
There is the idea :…

Erwan Douaille
- 553
- 1
- 10
- 31
-1
votes
1 answer
DWM messages constant values
I searched on internet, but I couldnt find what I am intersted in...
I am trying to find the value of
private const int DWMCOMPOSITIONCHANGED;
Thanks in advance!

Victor
- 13,914
- 19
- 78
- 147
-1
votes
2 answers
Extending caption bar without glass
I saw that Windows 7 Wizard has the title bar extended without requiring Aero Glass. Look at this:
I made my application to work with Aero Glass, but how about withiut it?
Thanks in advance!

Victor
- 13,914
- 19
- 78
- 147