aero

Adding Taskbar context menu to win7 application

走远了吗. 提交于 2019-11-28 10:24:41
Where can I find documentation about adding a context menu (EDIT: jumplist) to a windows 7 application? You know, when you right click on the application icon on the taskbar. Can I do that using .NET? Or do I need to use native code? Thank you! If you mean the jumplist, you have to do it using WPF (.NET) EDIT: See here What I believe you are looking for is the Windows® API Code Pack and you want create a Jump List for your application. What you see in a Jump List depends entirely on the program.Jump Lists don't just show shortcuts to files. Sometimes they also provide quick access to commands

c# how to make a Windows 7 aero winform (blured glass)?

痴心易碎 提交于 2019-11-28 09:30:16
问题 how to make somthing like this Windows Forms Glass Effect, Make ImageBox transparent I use VS 2010 回答1: If all you are looking for is the standard glass effect (which includes the blur), check out this article: http://www.codeproject.com/KB/vista/AeroGlassForms.aspx Basically, all you're doing is extending the window's frame (which already has the glass effect) into the client area. You have to call the DWM API that come with Windows Vista or later using a couple of P/invoke methods because

Disable aero fade-in effect on dialog

℡╲_俬逩灬. 提交于 2019-11-28 08:24:10
问题 I have a modal dialog I'm creating with MFC. When it appears, the Aero theme does it's fade-in transition for a new window appearing. In my particular case I'm switching immediately from one dialog to another and the fade effect is distracting. Is there a way it can be disabled so the window immediately appears, like it does when Aero is disabled, but without switching Aero off completely? 回答1: The DwmSetWindowAttribute function might be able to help you. It lets you modify a number of window

Change background color of disabled listbox in windows classic theme

女生的网名这么多〃 提交于 2019-11-28 07:45:55
问题 I am developing a WPF application that must run using Windows Classic theme. The application creates a dialog box containing a ListBox. When the dialog box is shown, it must be disabled for 1s before accepting any input. I am accomplishing this with a style trigger, and it works. However, the ListBox shows a white background when it's disabled, which I can't seem to get rid of. When using the aero theme, the following style resource fixes the issue: <SolidColorBrush x:Key="{x:Static

Aero: How to draw ClearType text on glass?

和自甴很熟 提交于 2019-11-28 07:41:39
Using GDI+ to draw text on glass: graphics.DrawString(s, Length(s), font, MakePointF(x, y), brush); You'll notice that the ClearType enabled text draws very poorly on glass: But with glass disabled the text, of course, draw fine: By way of comparison here is Anti-alias font smoothing : And here is no font smoothing : Note : No font smoothing looks better than it really does because StackOverflow resizes the images on your monitor. How do i draw ClearType text on glass? Notes Win32 native not .NET ( i.e. native) not Winforms ( i.e. native) GDI+ ( i.e. native) What Mark is suggesting is that you

Override default styling in WPF TextBox, based on PresentationFramework.Aero

爷,独闯天下 提交于 2019-11-28 06:16:51
I want to use the Aero textbox styling, but still override some properties. I try to accomplish this by: <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> <ResourceDictionary.MergedDictionaries> <ResourceDictionary Source="/PresentationFramework.Aero, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, ProcessorArchitecture=MSIL;component/themes/aero.normalcolor.xaml" /> </ResourceDictionary.MergedDictionaries> <Style x:Key="{x:Type TextBox}" TargetType="{x:Type TextBox}" BasedOn="

Adding button to titlebar (like Firefox 4) in VB.NET & WPF or WinForms on XP or Vista/7

空扰寡人 提交于 2019-11-28 01:20:44
问题 I was wondering if it is possible to add a button to the title bar in vb.net - I found a way to do this in one or the other but is it possible to do it on both? Here is the code that works if Aero is disabled (imports System.RunTime.InteropServices): Private Const WM_NCPAINT As Integer = 133 Private Const WM_NCMOUSEMOVE As Integer = 160 Private Const WM_NCLBUTTONDOWN As Integer = 161 Private Const WM_NCLBUTTONUP As Integer = 162 Private Const WM_NCLBUTTONDBLCLK As Integer = 163 Private Const

Handling WM_NCPAINT “breaks” DWM glass rendering on Vista/Aero

余生颓废 提交于 2019-11-27 23:01:53
I am trying to make a window that alternates between having an Aero/Glass and a custom rendered frame (by handling WM_NCPAINT ) based on a user setting. (Windows Vista). DwmComposition is enabled. My app comes up with the glass frame, but as soon as I toggle the setting to trigger the custom WM_NCPAINT codepath then toggle back to use DefWindowProc 's WM_NCPAINT handling, the native frame is now perpetually stuck in the "Vista Basic" style - it's no longer translucent and the caption buttons look different to the normal Aero/Glass ones. I've tried just about every way of poking the window from

WPF Borderless Window issues: Aero Snap & Maximizing

China☆狼群 提交于 2019-11-27 21:38:31
I've created a borderless WPF window by setting the following window properties in XAML: ... WindowStyle="None" AllowsTransparency="True" ... This causes a number of issues: 1) Resolved: It no longer has any built-in resize functionality 2) Resolved: It no longer has any built-in drag functionality 3) Resolved: Without the top toolbar, it no longer has minimize/maximize/restore/close buttons 4) Resolved: Maximizing via aero snap or setting WindowState prevents it from unsnapping. 5) Maximizing via aero snap or setting WindowState will use the whole screen as the boundary, overlapping the

Windows Aero: What color to paint to make “glass” appear?

让人想犯罪 __ 提交于 2019-11-27 18:09:37
What color must i paint in the client area in order to make glass appear? i've extended the frame of my form into the client area using: DwmExtendFrameIntoClientArea(self.Handle, margins); i cannot find any official documentation from Microsoft on what color and/or alpha the DWM will look for to replace with glass. The documentation on DwmExtendFrameInClientArea doesn't even mention that a custom color is required. There's only hearsay and myth that a special color is even required. The closest i can find is a topic on MSDN: Custom Window Frame Using DWM For the extended frames to be visible,