Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > Aero

Vista - Aero API

 
 
Old 03-04-2006   #1 (permalink)
Ram Shriram


 
 

Aero API

Hi,

Is there a developer API for Aero Glass that can allow me to write custom
window transitions, add effects, move windows around smoothly, etc?

Thanks,
Ram Shriram



My System SpecsSystem Spec
Old 03-04-2006   #2 (permalink)
Ivo Manolov [MS]


 
 

Re: Aero API

Hi Ram,

There is no newly exposed API that can allow you to write custom window
transitions, move windows around smoothly, etc. We do not have plans to
expose such API for Windows Vista.

Of course you can use USER32.DLL APIs such as AnimateWindow to achieve
window transitions.

As Zack mentions below, you can also use the new WinFX platform (see
http://msdn.microsoft.com/winfx/) to create compelling visual experiences
inside your windows.

Thanks:
Ivo


"Zack Whittaker (R2 Mentor)" wrote:

> Hey,
>
> Not sure if there is an API out there, but I've found this link which might
> have some useful stuff. You can either use the WinFX SDK and Visual Studio
> 2005 to create Aero models as well as Indigo technologies, but check out
> some of the links on this site anyway )
>
> http://windowssdk.msdn.microsoft.com...b5a7ccdb10.asp
>
>
> --
> Zack Whittaker
> Microsoft Beta (Windows Server R2 Beta Mentor)
> » ZackNET Enterprises: www.zacknet.co.uk
> » MSBlog on ResDev: http://msblog.resdev.net
> » ZackNET Forum: www.zacknet.co.uk/forum
> » This mailing is provided "as is" with no warranties, and confers no
> rights. All opinions expressed are those of myself unless stated so, and not
> of my employer, best friend, mother or cat. Let's be clear on that one!
>
>
>
>
> "Ram Shriram" wrote:
>
>> Hi,
>>
>> Is there a developer API for Aero Glass that can allow me to write custom
>> window transitions, add effects, move windows around smoothly, etc?
>>
>> Thanks,
>> Ram Shriram
>>

My System SpecsSystem Spec
Old 03-04-2006   #3 (permalink)
Brandon Furtwangler


 
 

Re: Aero API

On a similar note, how do you go about creating a window with the glass
effect like WMP and the picture viewer?


"Ivo Manolov [MS]" wrote:

> Hi Ram,
>
> There is no newly exposed API that can allow you to write custom window
> transitions, move windows around smoothly, etc. We do not have plans to
> expose such API for Windows Vista.
>
> Of course you can use USER32.DLL APIs such as AnimateWindow to achieve
> window transitions.
>
> As Zack mentions below, you can also use the new WinFX platform (see
> http://msdn.microsoft.com/winfx/) to create compelling visual experiences
> inside your windows.
>
> Thanks:
> Ivo
>
>
> "Zack Whittaker (R2 Mentor)" wrote:
>
> > Hey,
> >
> > Not sure if there is an API out there, but I've found this link which might
> > have some useful stuff. You can either use the WinFX SDK and Visual Studio
> > 2005 to create Aero models as well as Indigo technologies, but check out
> > some of the links on this site anyway )
> >
> > http://windowssdk.msdn.microsoft.com...b5a7ccdb10.asp
> >
> >
> > --
> > Zack Whittaker
> > Microsoft Beta (Windows Server R2 Beta Mentor)
> > » ZackNET Enterprises: www.zacknet.co.uk
> > » MSBlog on ResDev: http://msblog.resdev.net
> > » ZackNET Forum: www.zacknet.co.uk/forum
> > » This mailing is provided "as is" with no warranties, and confers no
> > rights. All opinions expressed are those of myself unless stated so, and not
> > of my employer, best friend, mother or cat. Let's be clear on that one!
> >
> >
> >
> >
> > "Ram Shriram" wrote:
> >
> >> Hi,
> >>
> >> Is there a developer API for Aero Glass that can allow me to write custom
> >> window transitions, add effects, move windows around smoothly, etc?
> >>
> >> Thanks,
> >> Ram Shriram
> >>

My System SpecsSystem Spec
Old 03-04-2006   #4 (permalink)
Ivo Manolov [MS]


 
 

Re: Aero API

Brandon,

All API functions provide by the DWM are exposed through dwmapi.dll (link to
dwmapi.lib, include dwmapi.h). To achieve client area glass, you need to use
the DwmEnableBlurBehindWindow API.

Unfortunately, the December CTP build (5270) lacks documentation on the DWM
APIs (dwmapi.h is your best bet), but here is a code snippet which should
help:

...
RECT r = {0};
GetClientRect(hwnd, &r);
HRGN hrgn = CreateRectRgn(0, 0, r.right - r.left, r.bottom - r.top);

DWM_BLURBEHIND bb = {0};
bb.dwFlags = DWM_BB_ENABLE | DWM_BB_BLURREGION;
bb.fEnable = TRUE;
bb.hRgnBlur = hrgn;

HRESULT hr = DwmEnableBlurBehindWindow(hwnd, &bb);
...


This comes with the usual disclaimer -- we have not yet completely
solidified the API, so any applications that you write may be broken by
future API revisions.

Hope that helps:
Ivo

"Brandon Furtwangler" wrote:

> On a similar note, how do you go about creating a window with the glass
> effect like WMP and the picture viewer?
>
>
> "Ivo Manolov [MS]" wrote:
>
> > Hi Ram,
> >
> > There is no newly exposed API that can allow you to write custom window
> > transitions, move windows around smoothly, etc. We do not have plans to
> > expose such API for Windows Vista.
> >
> > Of course you can use USER32.DLL APIs such as AnimateWindow to achieve
> > window transitions.
> >
> > As Zack mentions below, you can also use the new WinFX platform (see
> > http://msdn.microsoft.com/winfx/) to create compelling visual experiences
> > inside your windows.
> >
> > Thanks:
> > Ivo
> >
> >
> > "Zack Whittaker (R2 Mentor)" wrote:
> >
> > > Hey,
> > >
> > > Not sure if there is an API out there, but I've found this link which might
> > > have some useful stuff. You can either use the WinFX SDK and Visual Studio
> > > 2005 to create Aero models as well as Indigo technologies, but check out
> > > some of the links on this site anyway )
> > >
> > > http://windowssdk.msdn.microsoft.com...b5a7ccdb10.asp
> > >
> > >
> > > --
> > > Zack Whittaker
> > > Microsoft Beta (Windows Server R2 Beta Mentor)
> > > » ZackNET Enterprises: www.zacknet.co.uk
> > > » MSBlog on ResDev: http://msblog.resdev.net
> > > » ZackNET Forum: www.zacknet.co.uk/forum
> > > » This mailing is provided "as is" with no warranties, and confers no
> > > rights. All opinions expressed are those of myself unless stated so, and not
> > > of my employer, best friend, mother or cat. Let's be clear on that one!
> > >
> > >
> > >
> > >
> > > "Ram Shriram" wrote:
> > >
> > >> Hi,
> > >>
> > >> Is there a developer API for Aero Glass that can allow me to write custom
> > >> window transitions, add effects, move windows around smoothly, etc?
> > >>
> > >> Thanks,
> > >> Ram Shriram
> > >>

My System SpecsSystem Spec
Old 03-16-2006   #5 (permalink)
crish


 
 

Re: Aero API

Hi,

Is there any API used to implement glass effect for controls like combobox
and listview..

Thanks in advance ...
crish

"Ivo Manolov [MS]" wrote:

> Brandon,
>
> All API functions provide by the DWM are exposed through dwmapi.dll (link to
> dwmapi.lib, include dwmapi.h). To achieve client area glass, you need to use
> the DwmEnableBlurBehindWindow API.
>
> Unfortunately, the December CTP build (5270) lacks documentation on the DWM
> APIs (dwmapi.h is your best bet), but here is a code snippet which should
> help:
>
> ...
> RECT r = {0};
> GetClientRect(hwnd, &r);
> HRGN hrgn = CreateRectRgn(0, 0, r.right - r.left, r.bottom - r.top);
>
> DWM_BLURBEHIND bb = {0};
> bb.dwFlags = DWM_BB_ENABLE | DWM_BB_BLURREGION;
> bb.fEnable = TRUE;
> bb.hRgnBlur = hrgn;
>
> HRESULT hr = DwmEnableBlurBehindWindow(hwnd, &bb);
> ...
>
>
> This comes with the usual disclaimer -- we have not yet completely
> solidified the API, so any applications that you write may be broken by
> future API revisions.
>
> Hope that helps:
> Ivo
>
> "Brandon Furtwangler" wrote:
>
> > On a similar note, how do you go about creating a window with the glass
> > effect like WMP and the picture viewer?
> >
> >
> > "Ivo Manolov [MS]" wrote:
> >
> > > Hi Ram,
> > >
> > > There is no newly exposed API that can allow you to write custom window
> > > transitions, move windows around smoothly, etc. We do not have plans to
> > > expose such API for Windows Vista.
> > >
> > > Of course you can use USER32.DLL APIs such as AnimateWindow to achieve
> > > window transitions.
> > >
> > > As Zack mentions below, you can also use the new WinFX platform (see
> > > http://msdn.microsoft.com/winfx/) to create compelling visual experiences
> > > inside your windows.
> > >
> > > Thanks:
> > > Ivo
> > >
> > >
> > > "Zack Whittaker (R2 Mentor)" wrote:
> > >
> > > > Hey,
> > > >
> > > > Not sure if there is an API out there, but I've found this link which might
> > > > have some useful stuff. You can either use the WinFX SDK and Visual Studio
> > > > 2005 to create Aero models as well as Indigo technologies, but check out
> > > > some of the links on this site anyway )
> > > >
> > > > http://windowssdk.msdn.microsoft.com...b5a7ccdb10.asp
> > > >
> > > >
> > > > --
> > > > Zack Whittaker
> > > > Microsoft Beta (Windows Server R2 Beta Mentor)
> > > > » ZackNET Enterprises: www.zacknet.co.uk
> > > > » MSBlog on ResDev: http://msblog.resdev.net
> > > > » ZackNET Forum: www.zacknet.co.uk/forum
> > > > » This mailing is provided "as is" with no warranties, and confers no
> > > > rights. All opinions expressed are those of myself unless stated so, and not
> > > > of my employer, best friend, mother or cat. Let's be clear on that one!
> > > >
> > > >
> > > >
> > > >
> > > > "Ram Shriram" wrote:
> > > >
> > > >> Hi,
> > > >>
> > > >> Is there a developer API for Aero Glass that can allow me to write custom
> > > >> window transitions, add effects, move windows around smoothly, etc?
> > > >>
> > > >> Thanks,
> > > >> Ram Shriram
> > > >>

My System SpecsSystem Spec
Old 03-18-2006   #6 (permalink)
Ivo Manolov [MS]


 
 

Re: Aero API

Hi Crish,

There is no direct way of doing that. In order to do that you have to
subclass the control in question to get it to draw glass. Please refer to
http://msdn.microsoft.com/library/de...n_subclas3.asp for window subclassing.

We will be updating the documentation to provide additional information for
such scenarios for RC1.

Thanks:
Ivo


"crish" wrote:

> Hi,
>
> Is there any API used to implement glass effect for controls like combobox
> and listview..
>
> Thanks in advance ...
> crish
>
> "Ivo Manolov [MS]" wrote:
>
> > Brandon,
> >
> > All API functions provide by the DWM are exposed through dwmapi.dll (link to
> > dwmapi.lib, include dwmapi.h). To achieve client area glass, you need to use
> > the DwmEnableBlurBehindWindow API.
> >
> > Unfortunately, the December CTP build (5270) lacks documentation on the DWM
> > APIs (dwmapi.h is your best bet), but here is a code snippet which should
> > help:
> >
> > ...
> > RECT r = {0};
> > GetClientRect(hwnd, &r);
> > HRGN hrgn = CreateRectRgn(0, 0, r.right - r.left, r.bottom - r.top);
> >
> > DWM_BLURBEHIND bb = {0};
> > bb.dwFlags = DWM_BB_ENABLE | DWM_BB_BLURREGION;
> > bb.fEnable = TRUE;
> > bb.hRgnBlur = hrgn;
> >
> > HRESULT hr = DwmEnableBlurBehindWindow(hwnd, &bb);
> > ...
> >
> >
> > This comes with the usual disclaimer -- we have not yet completely
> > solidified the API, so any applications that you write may be broken by
> > future API revisions.
> >
> > Hope that helps:
> > Ivo
> >
> > "Brandon Furtwangler" wrote:
> >
> > > On a similar note, how do you go about creating a window with the glass
> > > effect like WMP and the picture viewer?
> > >
> > >
> > > "Ivo Manolov [MS]" wrote:
> > >
> > > > Hi Ram,
> > > >
> > > > There is no newly exposed API that can allow you to write custom window
> > > > transitions, move windows around smoothly, etc. We do not have plans to
> > > > expose such API for Windows Vista.
> > > >
> > > > Of course you can use USER32.DLL APIs such as AnimateWindow to achieve
> > > > window transitions.
> > > >
> > > > As Zack mentions below, you can also use the new WinFX platform (see
> > > > http://msdn.microsoft.com/winfx/) to create compelling visual experiences
> > > > inside your windows.
> > > >
> > > > Thanks:
> > > > Ivo
> > > >
> > > >
> > > > "Zack Whittaker (R2 Mentor)" wrote:
> > > >
> > > > > Hey,
> > > > >
> > > > > Not sure if there is an API out there, but I've found this link which might
> > > > > have some useful stuff. You can either use the WinFX SDK and Visual Studio
> > > > > 2005 to create Aero models as well as Indigo technologies, but check out
> > > > > some of the links on this site anyway )
> > > > >
> > > > > http://windowssdk.msdn.microsoft.com...b5a7ccdb10.asp
> > > > >
> > > > >
> > > > > --
> > > > > Zack Whittaker
> > > > > Microsoft Beta (Windows Server R2 Beta Mentor)
> > > > > » ZackNET Enterprises: www.zacknet.co.uk
> > > > > » MSBlog on ResDev: http://msblog.resdev.net
> > > > > » ZackNET Forum: www.zacknet.co.uk/forum
> > > > > » This mailing is provided "as is" with no warranties, and confers no
> > > > > rights. All opinions expressed are those of myself unless stated so, and not
> > > > > of my employer, best friend, mother or cat. Let's be clear on that one!
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > "Ram Shriram" wrote:
> > > > >
> > > > >> Hi,
> > > > >>
> > > > >> Is there a developer API for Aero Glass that can allow me to write custom
> > > > >> window transitions, add effects, move windows around smoothly, etc?
> > > > >>
> > > > >> Thanks,
> > > > >> Ram Shriram
> > > > >>

My System SpecsSystem Spec
 

Thread Tools


Similar Threads
Thread Forum
Aero theme missing, vista theme were actually aero Vista General
Aero Theme will not stay set and so cannot turn on Aero Vista General
Dreamscene broke Aero. I want Aero back. Help please. Vista General
aero with 2.9? Vista performance & maintenance
Aero Vista performance & maintenance


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46