Windows Vista Forums
Vista Forums Home Join Vista Forums Donate Vista Tutorials Tags

Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Microsoft Technical Newsgroups > Aero

Aero API

 
 
Thread Tools Display Modes
Old 03-04-2006   #1 (permalink)
Ram Shriram
Guest


 

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


Old 03-04-2006   #2 (permalink)
Zack Whittaker \(R2 Mentor\)
Guest


 

Re: Aero API

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!


Old 03-04-2006   #3 (permalink)
Ivo Manolov [MS]
Guest


 

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

Old 03-04-2006   #4 (permalink)
Brandon Furtwangler
Guest


 

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

Old 03-04-2006   #5 (permalink)
Ivo Manolov [MS]
Guest


 

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

Old 03-16-2006   #6 (permalink)
crish
Guest


 

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

Old 03-18-2006   #7 (permalink)
Ivo Manolov [MS]
Guest


 

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

 

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Aero theme missing, vista theme were actually aero Jim Vista General 8 01-21-2008 02:21 PM
Aero Theme will not stay set and so cannot turn on Aero ourstanley Vista General 9 01-14-2008 12:07 AM
Dreamscene broke Aero. I want Aero back. Help please. Scott Sherman Vista General 3 01-12-2008 10:13 PM
Aero Denis Vista General 5 02-03-2007 11:16 AM
Aero and F3D ? Zhu Xuan Vista General 5 06-28-2006 05:43 PM








Vistax64.com 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 2005-2008

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 47 48 49 50