dwm

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

*爱你&永不变心* 提交于 2019-12-29 06:30:13
问题 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

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

自古美人都是妖i 提交于 2019-12-28 12:00:25
问题 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

Aero: How to draw solid (opaque) colors on glass?

时光总嘲笑我的痴心妄想 提交于 2019-12-28 01:57:44
问题 Using GDI+ to draw various colors: brush = new SolidBrush(color); graphics.FillRectangle(brush, x, y, width, height); You'll notice that no opaque color shows properly on glass: How do i draw solid colors on glass? You'll also notice that a fully opaque color is handled differently depending on what color it is: opaque black: fully transparent opaque color: partially transparent opaque white: fully opaque Can anyone point me to the documentation on the desktop compositor that explains how

Delphi: How to remove subclasses in reverse order?

血红的双手。 提交于 2019-12-21 17:56:28
问题 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 := Application.Handle; if FWindowHandle <> 0 then begin // If a window handle is given then subclass the window to get notified about theme changes. {$ifdef COMPILER_6_UP} FObjectInstance := Classes.MakeObjectInstance(WindowProc); {$else} FObjectInstance :=

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

依然范特西╮ 提交于 2019-12-19 21:20:29
问题 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 bitmap. So how does the DWM rendering work? I mean, if DWM renders thumbnails directly onto the DC of the registered window, then my approach should work. I'm

How make sure Aero effect is enabled?

纵饮孤独 提交于 2019-12-19 09:20:15
问题 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 for Using Aero Effect to extend glass area in WPF. 回答1: On this MSDN page it suggests you can detect Glass using DwmIsCompositionEnabled: When the status of desktop composition is changed, a WM_DWMCOMPOSITIONCHANGED message is broadcast. There are no

What is the API to “create applications like Flip3D”

☆樱花仙子☆ 提交于 2019-12-19 06:18:32
问题 I am trying to figure out how to use DWM to render a copy of a Window into my own desired location. The only thing I can find to tell DWM to render somewhere is with the thumbnail APIs. But MSDN's DWM Thumbnail Overview they specifically warn me off: 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. I am told that the thumbnailing api cannot be used to

What is the API to “create applications like Flip3D”

冷暖自知 提交于 2019-12-19 06:18:12
问题 I am trying to figure out how to use DWM to render a copy of a Window into my own desired location. The only thing I can find to tell DWM to render somewhere is with the thumbnail APIs. But MSDN's DWM Thumbnail Overview they specifically warn me off: 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. I am told that the thumbnailing api cannot be used to

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

社会主义新天地 提交于 2019-12-18 04:16:09
问题 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.... ?? 回答1: 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

Maven Java EE Configuration Marker with Java Server Faces 1.2

こ雲淡風輕ζ 提交于 2019-12-17 22:44:59
问题 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