aero

Rendering controls on glass: Solution found, needs double-buffering/perfecting

泄露秘密 提交于 2019-12-02 14:28:23
I (finally!) found a way of rendering Windows.Forms controls on glass that doesn't seem to have any major drawback nor any big implementation time. It's inspired by this article from Coded, which basically explains how to natively override the painting of controls to draw over them. I used that approach to render the control to a bitmap and paint it back with GDI+ and the appropriate alpha channel over the NativeWindow's painting area. The implementation is simple but could be perfected for usability, but that's not the point of this question. The results are, however, quite satisfying: There

Enabling/Disabling Aero from a Windows Service

守給你的承諾、 提交于 2019-12-02 12:21:38
问题 I have some code to enable/disable the Windows Aero service in Vista, and I would like to run it in a Windows Service. The code works in a standalone application, but when I run it from a Service, nothing happens. No errors or exceptions are thrown. I realise that running code in a service is a different scope than running code in an application, but in this case, how would I enable/disable Aero from the service? Is this even possible? Here is the code I am working with: public static

Delphi 7 - Screenshot without capturing form - Windows 8 - DWM.exe

十年热恋 提交于 2019-12-02 10:17:37
问题 Friends, Need to screenshot of the all desktop WITHOUT MY FORM and load in TImage. Success in Windows XP, 7 - with just ALPHABLEND = TRUE + SCREENSHOT PROCEDURE. But same code does not work in Windows 8 - capture all screen INCLUDING THE FORM. I know the problem is related to AERO - DWM.EXE - success using pssuspend.exe (sysinternals) - suspending winlogon.exe and killing dwm.exe Someone could tell me how to capture all desktop without my form also in Windows 8? prntscr.com/314rix - SUCESS IN

Drawing a TextBox in an extended Glass Frame w/o WPF

北城以北 提交于 2019-12-02 08:25:17
I am trying to draw a TextBox on the extended glass frame of my form. I won't describe this technique, it's well-known. Here's an example for those who haven't heard of it: http://www.danielmoth.com/Blog/Vista-Glass-In-C.aspx The thing is, it is complex to draw over this glass frame. Since black is considered to be the 0-alpha color, anything black disappears. There are apparently ways of countering this problem: drawing complex GDI+ shapes are not affected by this alpha-ness. For example, this code can be used to draw a Label on glass (note: GraphicsPath is used instead of DrawString in order

XNA losing title bar theme on fullscreen->windowed transition

倖福魔咒の 提交于 2019-12-02 07:11:51
问题 (I think Aero is the term). When I start my XNA program in Windowed mode, I have the glossy bar as seen on Win7/Vista programs. When I set to fullscreen and then revert, I will have a plain blue 'basic' title border. How can I set the theme or style of this back to the Aero style? 回答1: If you call the following before switching back to windowed mode, you will get the Aero style, but it requires you reference System.Windows.Forms . System.Windows.Forms.Application.EnableVisualStyles(); I'm not

Enabling/Disabling Aero from a Windows Service

耗尽温柔 提交于 2019-12-02 05:46:41
I have some code to enable/disable the Windows Aero service in Vista, and I would like to run it in a Windows Service. The code works in a standalone application, but when I run it from a Service, nothing happens. No errors or exceptions are thrown. I realise that running code in a service is a different scope than running code in an application, but in this case, how would I enable/disable Aero from the service? Is this even possible? Here is the code I am working with: public static readonly uint DWM_EC_DISABLECOMPOSITION = 0; public static readonly uint DWM_EC_ENABLECOMPOSITION = 1;

Delphi 7 - Screenshot without capturing form - Windows 8 - DWM.exe

心已入冬 提交于 2019-12-02 04:39:12
Friends, Need to screenshot of the all desktop WITHOUT MY FORM and load in TImage. Success in Windows XP, 7 - with just ALPHABLEND = TRUE + SCREENSHOT PROCEDURE. But same code does not work in Windows 8 - capture all screen INCLUDING THE FORM. I know the problem is related to AERO - DWM.EXE - success using pssuspend.exe (sysinternals) - suspending winlogon.exe and killing dwm.exe Someone could tell me how to capture all desktop without my form also in Windows 8? prntscr.com/314rix - SUCESS IN WIN7 prntscr.com/314tj7 - FAILED IN WIN8 prntscr com/31502u - SUSPEND WINLOGON.EXE and KILL DWM.EXE IN

How to draw the bitmap icon on title bar when Windows Aero theme is enabled

巧了我就是萌 提交于 2019-12-02 00:44:59
I'm developing a MFC application ( DWM library is not available ). I want to draw a bitmap functioning as a button on the title bar. However, the bitmap won't present when the Aero theme is enabled in Windows 7 (There are no problem when I disable the Aero theme). But my application still reactable by clicking on the position of the bitmap. Does anyone can teach me how to solve this problem? Thanks xMRi Drawing custom data into the frame area with DWM is described on MSDN, also the hit testing is explained there as well: Custom Window Frame Using DWM If you search for DWM on the CodeProject

Windows Aero areas in own C# Applications

那年仲夏 提交于 2019-12-01 21:06:23
I'm wondering about that many new applications, I think most built in WPF, has this really cool Windows Aero Glass interfaces. For example Seesmic or the upcoming Firefox 3.7 (source: crenk.com ) Searching in the internet most time it looks like you need a hack to realize this. But seriously: I don't think big software development teams use hacks to roll out their huge used products. So my question is: Windows Aero Glass Areas - How to do? Is it only possible with a hack? Maybe it's just one property, i don't know. I'm WinForms developer so I never tested out WPF. But my Google search didn't

Is it possible to achieve the “Aero Glass” look on XP?

爷,独闯天下 提交于 2019-12-01 13:26:44
Does anyone know any kind of framework that enables (not exactly the same, but) Vista's Aero Glass on XP? I need to develop a little desktop application with WPF, which has a Vista-like UI on XP. I don't need exactly the Aero Glass, some UI like "Windows Live Messenger" will do the thing. Is there any way to make it a reality? If you really mean Aero Glass then I think you're out of luck. The hardware acceleration required to create this effect is only supported via Vista's new DWM (Desktop Window Manager), which works by compositing multiple windows together into one rendered layer. If you