dwm

DWM and painting unresponsive apps

In Vista and later, if an app becomes unresponsive, the Desktop Window Manager is able to handle redrawing it when necessary (move a window over it, drag it around, etc.) because it has kept a pixel buffer for it. Windows also tries to detect when an app has become unresponsive after some timeout, and tries to make the best of the situa...

How do you place controls on the chrome of a WPF Window when the user is on Windows XP?

How can you place controls on a frame of a WPF window? I took a look at this but I don't know how to do this in WPF. link textThe problem comes when The application has to run on Windows XP where there is no DWM support. Also, if this is running on Vista without DWM, could the article still work? ...

My OpenGL game switches Aero DWM Glass off.

Hi ! I wrote a free game a few years ago: http://www.walkover.org. For the lobby and menus, it uses normal dialogs like win32. When the actual game starts it uses OpenGL. Now, on Windows 7, when the actual game starts, it switches windows aero glass off and switches it back on when the game is over. Is there something I can do to pr...

Windows thumbnail preview with JNA (Java)

W32API.HWND targetHwnd = User32.INSTANCE.FindWindow('SunAwtFrame', 'Frame') W32API.HWND sourceHwnd = User32.INSTANCE.FindWindow('triuiScreen', 'EVE') W32API.HANDLE thumbnailH = new W32API.HANDLE() NativeLibrary dwm = NativeLibrary.getInstance('dwmapi') dwm.getFunction('DwmRegisterThumbnail').invoke(targetHwnd, sourceHwnd, thumbnailH) ...

Disable desktop composition for an application

How do I flag an app in Windows Vista/Seven to disable desktop composition thru registry or NSIS script? Normally it´s done in Compatibility settings in app´s properties. ...

Redirect application's graphical output in Windows Vista/7 (with DWM)

I want to create a desktop manager that takes informations of all running applications including states and screenshots to display and manipulate them in my virtual space (probably in 3D). It can be considered as another layer of abstraction on top of Windows itself. Because many native Windows Vista/7 features like Flip 3D and Live Thu...

Windows 7 DWM weirdness

I'm looking to write a FOSS "Alt+Tab" replacement (window switcher) for Windows, since there are a few features I feel it's (still) lacking; but I'm noticing two quirks I can't seem to fix: #1. (Somewhat Unrelated) In the default Windows 7 window switcher, one computer allows left clicking on a thumbnail to focus the window; however on ...

Wait for disable aero to complete

My app has an option to disable aero by calling DwmEnableComposition(0) before capturing a screen image. As you know, disabling aero makes the screen go black then return to normal afterwards. On different PCs this might take 2 to 3 seconds depending on how fast the system is. Is there a better way of determining if aero has fully disa...

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 found in .net WinForms. Initially I wondered if it set some kind of window style bit use...

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 SetWindowPos with the appropriate flags) Hide the old page that we just covered up Repai...

Windows Forms Glass Effect, Make ImageBox transparent

Hi - 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 up as white instead of the glass effect. How can i make the image show as transparen...

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 means) Here's a color that i like, a nice puke green: You can notice the color is greeny, and th...

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 as much extraneous space as possible, but really, what's the point? Why not just create t...

Can a Desktop Window Manager API (dwmapi.dll) mirror/clone a mouse pointer?

Can a Desktop Window Manager API (dwmapi.dll) mirror/clone a mouse pointer? Anyone know how? I would be most thankful if it's written in C#. ...

How to make dwmapi (Desktop Windows Manager API) work in Windows XP?

Hi, 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 Manager API) work in Windows XP? Thanks, jron ...

DWM: What API to create applications like Flip3D

On MSDN's DWM Thumbnail Overview they specifically state: Note DWM thumbnails do not enable developers to create applications like the Windows Vista Flip3D (WINKEY-TAB) feature. Thumbnails are rendered directly to the destination window in 2-D. So what API can be used to create applications like the Windows Vista Flip3D? ...

WPF Aero window without shadow

I am aware of the following question: http://stackoverflow.com/questions/3696838/i-want-to-disable-the-shadow-effect-on-a-specific-aero-window However, I still need the DWM blur/reflections behind my Aero window, so I can't create a custom transparent one. How would I approach that? I could handle the reflections by myself, but I don't ...

Achieve Dwm color blurs on custom blurred windows

I've made a picture to describe my question best, as words really could not do it properly this time. The question and notes are included in the picture. http://localhostr.com/files/c7c2fe/Colorization.png Transcript of notes: Color Averages: Blur: #FEC1C1 Unfocused: #FEC1C1 Focused: #DE6868 Taskbar: #DC6161 Questi...

WPF and DWM for redirecting output over the network

Im writing a large WPF app (large as in screen res), running with some basic controls, basic video playing, etc... I have been researching how to broadcast/redirect the WPF window to other monitors over a local network. In essence, trying to show a select region of the WPF app on seperate monitors in real time. I have been reading abou...

Google Chrome tabs style UI in Delphi

I am looking for the easiest way to implement Google Chrome style tabs over Windows 7 glass, in a Delphi application. It would be great if I could hybridize the Google Chrome tabs style, and one element of the Ribbon style (the ribbon button, a round icon button), together, like this: ...