aero

How to display a Windows 7 style context menu?

為{幸葍}努か 提交于 2019-12-03 16:04:34
In my .NET applications, context menus look like the left one. How can I apply the Windows 7 style on them in order to make them look like the right one? Right-click the tool box, Choose Items. Tick "ContextMenu", the one with Namespace = System.Windows.Forms and Directory = Global Assembly Cache. This .NET 1.x component is distinct from ContextMenuStrip, it uses native Windows menus. You'll lose some capabilities, I doubt you care. You'll need to write a line of code to assign the menu, the designer only lets you set the ContextMenuStrip property. Add that line to the constructor, like:

Custom Shaped Aero Windows in C#? Like THESE!

偶尔善良 提交于 2019-12-03 12:13:01
问题 How do I make an irregular shaped Aero window like this one? Look in the lower right corner! This program also does it. This also does it! >_< Even more... 回答1: I recently used this solution and it worked for me: http://devintelligence.com/2007/10/shaped-windows-in-wpf/ I had to create a separate assembly containing the WPF form because the rest of my project uses WinForms. From there it's quite straight forward: Use a background image with transparency and set the form to transparent. Though

DwmExtendFrameIntoClientArea without Aero Glass

泄露秘密 提交于 2019-12-03 12:10:03
问题 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 DwmExtendFrameIntoClientArea API call in my application, the returned HRESULT is definitely not success, and my application ends up looking like this: http://img197.imageshack.us/img197

Delphi button on Glass - Best Looking Third Party Button Component

淺唱寂寞╮ 提交于 2019-12-03 08:17:06
I am looking for a Delphi button designed to use with Aero Glass running Vista and Windows 7, with the following properties: completely self-drawn TCustomControl descendant. looks good [ renders in a way that looks to the user like a normal button, with no glitches ] over a Glass pane with Aero composition (DWM), no white or black ring around the button, and no problems with the caption getting messed up by Aero composition. (This will knock out any button that has not been written to be glass aware.) The usual features of a TButton/TBitButton, including link to TActions, support for a glyph

How do you do a gradient fade to Aero glass in a WPF application like Office 2010 does?

旧城冷巷雨未停 提交于 2019-12-03 08:07:51
I am writing an application in WPF and I would like to have the top of the application fade from a color to Aero glass like the Office 2010 applications. Really it will be fading the area just below the title bar from glass to a color. (I think that maybe a better way to describe it). I figured out how to get it to work. I set the entire window to have the aero glass effect on it using the native API's and then a create a LinearGradientBrush for my background of the window. In the brush I used the Alpha properties of the brush and set the stops to have the top of the window go from white

DwmExtendFrameIntoClientArea without Aero Glass

扶醉桌前 提交于 2019-12-03 03:32:00
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 DwmExtendFrameIntoClientArea API call in my application, the returned HRESULT is definitely not success, and my application ends up looking like this: http://img197.imageshack.us/img197/9629/clientapplication.png Normally, with Aero Glass enabled, the border stretches down to underneath the

WPF / Windows 7: Disable Default Progress Bar Glow Animation

爱⌒轻易说出口 提交于 2019-12-03 03:16:40
Quick WPF question - on Win 7 (and I assume Vista) in WPF, the default progress bar does a nice little glowing "whoosh"-y animation. I'm showing progress of about 48 things on one screen, and it's a tad overwhelming to have all of these things whooshing on you - can you disable just these animations without affecting the rest of the default animations in the application? I'd agree with Matthew's comment, but anyway, your answer is to apply a custom style without the animation. Here's the original style (via reflector), you can remove/tweak/whatever: <Style x:Key="{x:Type ProgressBar}"

Custom Shaped Aero Windows in C#? Like THESE!

非 Y 不嫁゛ 提交于 2019-12-03 02:40:44
How do I make an irregular shaped Aero window like this one? Look in the lower right corner! This program also does it. This also does it! >_< Even more... I recently used this solution and it worked for me: http://devintelligence.com/2007/10/shaped-windows-in-wpf/ I had to create a separate assembly containing the WPF form because the rest of my project uses WinForms. From there it's quite straight forward: Use a background image with transparency and set the form to transparent. Though you might need to change WindowStyle="None" to something other or else you'll have no close button etc. 来源:

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

人走茶凉 提交于 2019-12-03 01:09:57
问题 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

How to correctly screencapture a specific window on Aero/DWM

北慕城南 提交于 2019-12-02 21:26:28
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 problem: I'm using the standard GetDC/BitBlt method to capture the window contents. I have no problems with this method while doing regular full-screen grabs (no matter how many windows are opened etc). The problem arises when I try capturing the foreground window