dwm

Mimicking Acrylic in a Win32 app

二次信任 提交于 2019-11-30 05:19:25
Microsoft recently announced Acrylic, the glass-like material in Fluent Design . It's presented as XAML / UWP only, but looks very similar to glass, except it can be arbitrarily tinted and can apply in-app to flyover controls as well as to the app's standalone windows. The 'recipe' makes it appear as though it's implemented in XAML itself , not being exposed to the wider system. A related SO question confirms this (it's devoid of concrete, technical answers, but implies acrylic isn't available through the WinAPI the way glass is.) How would someone mimic this in a plain old Win32 app? Using

Qt: Erase background (Windows Aero Glass)

匆匆过客 提交于 2019-11-29 20:29:24
Update see Using Blur Behind on Windows for an example of using Qt and DWM . alt text http://labs.trolltech.com/blogs/wp-content/uploads/2009/09/blurbehind2.png 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 is : how do I erase the window background, so that widgets would paint themselves on a clean glass? The short code to reproduce the problem is (Vista with Aero): class Window(QWidget): def

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

寵の児 提交于 2019-11-29 05:12:51
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 the contents of the target Window. Is there a way to render the window screen shot directly to BitmapImage or Image instead of directly drawing it somewhere in your window? (Basically to just grab a screen shot of the window - even if it's covered by another

How can I get Aero Glass on a Windows Form without Borders?

孤街醉人 提交于 2019-11-29 04:37:06
I'm trying to have Aero Glass look in my forms in VB.NET 2010 app with DWM API, but as function call suggests, it extends look of Frame to the client area, and if form has no border, nothing will happen and form will become invisible. So, can I get Aero glass in a form without any border.... ?? As you've said, DwmExtendFrameIntoClientArea literally extends the transparent glass effect of the window's frame into its client area, which means that if your form's FormBorderStyle is set to "None", your window will effectively be invisible. Instead, you need to use the DwmEnableBlurBehindWindow API

Maven Java EE Configuration Marker with Java Server Faces 1.2

雨燕双飞 提交于 2019-11-28 20:20:35
I'm having a weird configuration problem with Maven in Eclipse. Although I can build the project and deploy it to tomcat without any errors, The Marker tab keeps showing the following message: [-] Maven Java EE Configuration Problem (x) JavaServer Faces 1.2 can not be installed : One or more constraints have not been satisfied. (x) JavaServer Faces 1.2 requires Dynamic Web Module 2.5 or newer. I am in fact using Dynamic Web Module 2.4, which would be the source of the message. I would need to change it to at least 2.5 to work with JSF. Problem is, I'm not even using JSF. So, probably one of

Google Chrome style tabs on glass in Delphi

こ雲淡風輕ζ 提交于 2019-11-28 17:37:55
I am trying to implement Google Chrome style tabs, in Windows 7, in a Delphi application. The elements of this are: tabs may extend into the non-client area as they do in google chrome itself. draws properly on Vista and Windows 7 when glass is enabled tabs work just like google chrome, and look like google chrome, over glass. I have found that the challenges I have to overcome are: How do I get a control (VCL control) to extend into the non-client area? (A good sample of a control that does this is the Ribbon control included in the VCL sources, but I haven't seen anybody else do it, and it

Delphi support for Aero Glass and the DoubleBuffered property - what is going on and how do we use them?

狂风中的少年 提交于 2019-11-28 16:33:43
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 used by the common controls library, or what. Why is it used, and when should it be used? [Update: I should state that I know what "double-buffering" is, as a general technique for reduction of flicker, what I wondered is, why does it have ANYTHING to do with

Qt: Erase background (Windows Aero Glass)

只愿长相守 提交于 2019-11-28 16:32:08
问题 Update see Using Blur Behind on Windows for an example of using Qt and DWM.alt text http://labs.trolltech.com/blogs/wp-content/uploads/2009/09/blurbehind2.png 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 is : how do I erase the window background, so that widgets would paint themselves on a

How to fix DWMAPI.DLL delay-load dependency under WinXP?

左心房为你撑大大i 提交于 2019-11-28 06:48:40
I have built a .dll under WinXP that claims it can't find DWMAPI.DLL when it's loaded. The problem is that this DLL is a Vista DLL, and this a known issue for XP users that have IE7 installed. The recommendation is to uninstall IE7 or repair the .NET Framework via Add/Remove programs. I did the repair, and nothing changed. I'm not about to uninstall IE7 since there must be a better solution that's not the equivalent of "reinstall windows". I've read bad things about people who attempted to uninstall IE7, so I'm reluctant to go that route. I am using C++ under Visual Studio 2003 (7.1). I don't

PrintWindow and BitBlt of hidden windows

孤街浪徒 提交于 2019-11-28 04:45:07
问题 My program is taking screenshots of other application windows to automate some tasks on them. Those windows can be hidden offscreen or obscured by other windows from time to time. To reduce clutter, I have removed any error checking from the code listings. I am preparing the both types of screenshots with // Get size of the target window. RECT clientRect; GetClientRect(hwnd, &clientRect); int width = clientRect.right - clientRect.left; int height = clientRect.bottom - clientRect.top; //