dwm

Qt: Erase background (Windows Aero Glass)

Update see Using Blur Behind on Windows for an example of using Qt and DWM. Original question: I want to create a Windows Aero Glass window with Qt, now it looks like this: But after calling some my_window->repaint() my window's label becomes broken: But now if I resize the window slightly, it repaints properly. The question ...

How easy is it in DWM to make an 'always on top' thumbnail for an existing window

I really like when you hover over a window in Vista on the taskbar and it gives you a little preview. if it is video it even plays in the thumbnail. Often I really wish I could 'tear off' this little window and keep it as an 'always on top' thumbnail on my screen. Maybe its a progress bar I'm watching, maybe its a video i want a littl...

What is the period of time that the window manager waits before marking a window as unresponsive?

How long does windows wait before deciding a window is unresponsive and brings up the the unresponsive chrome? Just from anecodotal experience, I assume it is different in XP and Vista, as they are handled very differently by the DWM in Vista and the Explorer shell in XP. ...

Desktop Window Manager in Windows 7

Are there any new DWM APIs in Windows 7? If so, where can I find documentation on them? ...

Handling WM_NCPAINT "breaks" DWM glass rendering on Vista/Aero.

I am trying to make a window that alternates between having an Aero/Glass and a custom rendered frame (by handling WM_NCPAINT) based on a user setting. (Windows Vista). DwmComposition is enabled. My app comes up with the glass frame, but as soon as I toggle the setting to trigger the custom WM_NCPAINT codepath then toggle back to use De...

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 related to Aero until now that I've been using Windows 7 RC for a couple of weeks. The pro...

Checking if DWM/Aero is enabled, and having that code live in the same binary for 2000/XP/Vista/7

I know the title makes little sense, mostly because it's hard to explain in just one line. So here's the situation: I have a program who's binary is targeted at Windows 2000 and newer. Now, I went ahead and added some code to check if the user is running under Vista/7, and if so then check if Aero/DWM is enabled. Based on this I'll disa...

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 ...

How does Windows change Aero Glass color?

I'm using Windows 7 RTM and I wonder how the control panel is able to update the Aero Glass color so smoothly without restarting the DWM (uxsms). DwmSetColorizationColor isn't working any more... ...

DWM Composition toggle causes client area to lose alpha

I have a simple Windows application here: http://www.bengoodger.com/software/chrome/dwm/app.cc My app provides a customized glass frame for when DWM compositing is active, and a fully custom frame when it is inactive or not available. The "customized glass frame" consists of a enlarged title bar area, which is reported by my implement...

Desktop Window Manager capture the whole screen

Hello all, I was wondering if anyone could give me a starting point of how to capture the entire screen in Windows Vista/7? I know how to do it in previous versions of Windows, but would really like to keep everything in the D3D stack, without resorting to GDI/BltBit calls. I realize that you can get a live thumbnail of a given window...

Saving a screenshot of a window using C#, WPF, and DWM

This is a follow up question to this question The solution to the above uses DWM to display a thumbnail of an active window. If I understand correctly, it works by letting you specify the window handle of the application you want to view and then having you provide a window handle and a location on that window where windows should draw ...

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 what color and/or alpha the DWM will look for to replace with glass. The documentation ...

DWM Screen Capturing with DirectX IDXGIOutput::GetDisplaySurfaceData

Hi, I'm trying to capture DWM's DirectX surface by using DXGI and GetDisplaySurfaceData(). (I know how to do it with GDI and DirectX 9 but I need it in Direct3D 10/11). However when I'm taking ownership of adapter's output with IDXGIOutput::TakeOwnership(), before calling to GetDisplaySurfaceData(), the whole screen blacks-out for a m...

Why could DwmRegisterThumbnail fail?

I am trying to capture screen of a child window and render it on parent surface in Windows 7. HTHUMBNAIL thumbnail = NULL; HRESULT hr = S_OK; hr = DwmRegisterThumbnail( hWnd, visualHwnd, &thumbnail ); if( SUCCEEDED( hr ) ) { ... } This fails all the time. visualHwnd is the child window and hWnd is the parent. I also tried it with...

Is it possible to capture a window with windows 7 DWM thumbnail in it?

I am starting to believe that you can do nothing with Windows API. I have two windows. One has a DWM thumbnail in it. What I want to do is, I want to be able to capture the screen of the window with the thumbnail into the other one. When I do this, using bitblt, everything is copied except the thumbnail. It just isn't there in the bitma...

DwmExtendFrameIntoClientArea without Aero Glass

Using the DwmExtendFrameIntoClientArea API call with Aero Glass enabled works just fine. However, I want it to work when Aero Glass is disabled as well, like how it works in the Windows control panel: Notice how the frame has extended into the client area, even though Aero Glass is disabled? When I make the DwmExtendFrameIntoClientAre...

Windows 7 Desktop Manager

when we drag a window to the side of the screen we get like a ripple effect, can we change that programaticaly? ...

Using DwmExtendFrameIntoClientArea causes window to oddly resize

I have an application that uses DwmExtendFrameIntoClientArea to draw a glass effect area at the top of my .NET Form. A strange side effect is that when you maximize and restore the window it grows taller. So if you keep maximizing/restoring it just keeps getting taller! Remove the call to DwmExtendFrameIntoClientArea to remove that nice ...

Getting window screenshots, but text portions are transparent

This is a followup to this question. The code shown there has been very useful in obtaining a bitmap from a window and applying it as a BitmapSource on a WPF Image control. However, I'm finding that many areas of the image are showing up as transparent, particularly any areas of text. I've posted a sample of what I'm seeing here: http:/...