aero

Delphi - Windows Aero resources

Anyone have any good resources for Delphi and Windows Aero on 7 or Vista? We're just about to add Windows 7 to our company and want to make sure that our in-house applications use fit in as well as possible. Using Delphi 2010 I can add the Glass Frame and the menu bar inherits an Aero look, however the TabControls, Grids and Status bar...

OpenGL window cleared with no WM_PAINT message

I have an application with three MDI windows, all of them showing OpenGL content. On XP, everything works fine. But on Vista/Win7 the mdi child windows don't refresh properly. After startup, all windows show their content properly. But when I change the focus from one mdi window to the next, those two windows are cleared (i.e., they onl...

Desktop Window Manager capture the whole screen

Hello all, I was wondering if anyone could give me a starting point of how to capture the entire screen in Windows Vista/7? I know how to do it in previous versions of Windows, but would really like to keep everything in the D3D stack, without resorting to GDI/BltBit calls. I realize that you can get a live thumbnail of a given window...

Screenshot of window

I'm trying to take screenshots of all open windows, also the minimized ones. Currently I'm using this code: http://www.developerfusion.com/code/4630/capture-a-screen-shot/ But it doesn't work for minimized windows and the areas where there is a Glass effect since Vista like the explorer title bar are black. Can anyone help me out? My o...

Is Double-buffering required with Desktop Composition enabled?

Is double-buffering still required when Desktop Composition is enabled? In Microsoft's Application Compatibility Guide: Graphical Device Interface (GDI) Prior to Windows Vista and Windows Server 2008, a window handle (HWND) was painted directly to the screen, which had certain benefits, but limited how Windows could di...

WPF: How to have custom button template that uses system's button background by default?

Hi, I am creating a style that changes a ControlTemplate of a Button (it actually adds arrow on the right, so that the button looks like dropdown button (which is missing in wpf)). Inside of template, I put the actual button (because I need the result to still be like button - I could change only ContentTemplate, but I need to display t...

Windows Aero: What color to paint to make "glass" appear?

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 ...

Bad behavior with Aero off in Vista

I have a directx9 application, which needs to run on a machine with Aero disabled. The app runs in windowed mode. When the window is first created, it looks just fine within a single screen. When I move the window in such a way that it spans two screens attached to the same graphics adapter (and GPU) the region on one screen seems to mir...

Aeroglass and Visual Basic.Net

Hi, are there any tutorials, or, is there simple code to be used to control Aeroglass in VB.NET? I would like to know how to play with various effects and, if possible, how to do the Aeroglass effects done in Paint.NET 3.5. (The inside of the topbar is not straight. ...

Win7: Monitor DC of secondary Monitor gets offset if disabling Aero

Scenario: Screen capturing on multi display machines. Capture screen of secondary monitor [which is the only affected] Turn off Aero: DwmEnableComposition(DWM\_EC_DISABLECOMPOSITION) Create a [new] DC for the secondary monitor via: m_DC->CreateDC(_T("DISPLAY"), _T("\\.\DISPALY2", NULL, NULL); Result: The DC will get an offset w...

Flip-3D on WinXP and taking layered screenshot

Hello guys, I have two questions but somehow related: How to implement flip 3d without Aero APIs on Windows XP? Have you guys seen this awesome app on Mac? http://layersapp.com Is there any possibility to have something similar on Windows? If the #1 question is solved I think we can make something like that I know how to take a scree...

DWM Screen Capturing with DirectX IDXGIOutput::GetDisplaySurfaceData

Hi, I'm trying to capture DWM's DirectX surface by using DXGI and GetDisplaySurfaceData(). (I know how to do it with GDI and DirectX 9 but I need it in Direct3D 10/11). However when I'm taking ownership of adapter's output with IDXGIOutput::TakeOwnership(), before calling to GetDisplaySurfaceData(), the whole screen blacks-out for a m...

Is Aero contribute to WPF performance?

Hi, I've put off WPF development for a quite a while but, I'm finally thinking of moving ahead. I understand that WPF is totally new rendering "mechanism" which uses the GPU power (am I right?) unlike the CPU power that Winforms took up. If I'm not mistaking, this level of GPU support comes with Aero and therefore, a WPF app should run ...

Aero Glass Theme (Windows Forms)

Hey All, A litle while ago I was on Codeproject and came across a cool little tesxteditor and the whole form was made out of aero-glass, and the whole textbox was too. But I can't find it anymore. Does anybody know where it's gone? Or how I can make my Windows Form completely made out of Aero Glass? Thank you :) ...

Windows7 taskbar thumbnail without showing a window

Hi, Is it possible to "mark" my program as active in the windows7 taskbar without actually showing a window and even provide a thumbnail picture? I worte a small program which displays the system battery as a deskband. Now in windows7 I'd like to display the battery in the thumbnail picture, and make the deskband optional. ...

How to use Windows 7 API like Aero Glass, Jump List, etc.

How can I take advantage of the Windows 7 features like Aero Glass, Jump Lists, ect. And minor changes like the icon on the jump list, the color of the jump list. Any good articles? ...

Aero windows in WPF (C#)

I'd like to implement a window much like how the newer versions of IE have the URL bar kind of incased in the Vista/7 aero. I've looked around and not found too much useful information, and was wondering if any of you guys knew of the best way to do it! ...

Windows 7 Aero Theme Progress Bar Bug?

I have ran into what I consider to be a progress bar bug on Windows 7. To demonstrate the bug I created a WinForm application with a button and a progress bar. In the button's 'on-click' handle I have the following code. private void buttonGo_Click(object sender, EventArgs e) { this.progressBar.Minimum = 0; this.progressBar.Maximum ...

DwmExtendFrameIntoClientArea without Aero Glass

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 DwmExtendFrameIntoClientAre...

Black flicker while resizing translucent Qt widget (only when Aero is enabled)?

I have a top-level Qt widget with the FramelessWindowHint flag and the WA_TranslucentBackground attribute set. It has several children, each of which draws an image on it. They are not in a layout. Instead, I simply move them around when something changes (it is not user-resizable). There are two states to the window - a big state and a...