471,310 Members | 1,373 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,310 software developers and data experts.

Desktop Window Manager wrapper

In case you are writing a program that need to interact with the Desktop
Window Manager, manage Glass or blur on your forms/windows, you might want
to check the series of posts I am writing on this matter at
http://stoyanoff.info/code/glasslib/.

The library (GlassLib) is open source and can be compiled for Windows Forms,
Windows Presentation Foundation, or with no dependencies whatsoever (it
operates with window handles in this case).

Best Regards,
Stanimir Stoyanov | www.stoyanoff.info

Jul 22 '08 #1
4 7919
On Jul 22, 7:55*pm, "Stanimir Stoyanov" <stoya...@REMOVETHIS.live.com>
wrote:
In case you are writing a program that need to interact with the Desktop
Window Manager, manage Glass or blur on your forms/windows, you might want
to check the series of posts I am writing on this matter athttp://stoyanoff.info/code/glasslib/.

The library (GlassLib) is open source and can be compiled for Windows Forms,
Windows Presentation Foundation, or with no dependencies whatsoever (it
operates with window handles in this case).
Great stuff, but it seems like precisely the right case to use
extension methods to transparently introduce those new members on Form
class. E.g. instead of:

Dwm.Glass[form] = new DwmMargins(100, 4, 8, 20);

something like:

form.GetDwm().Glass = new DwmMargins(100, 4, 8, 20);
Jul 22 '08 #2
Thanks for the suggestion, Pavel. I will take it into consideration and work
on a version with extensions but still leave properties for use in legacy
(well, older) versions of Visual Studio and .NET Framework.

Best Regards,
Stanimir Stoyanov | www.stoyanoff.info

"Pavel Minaev" <in****@gmail.comwrote in message
news:2d**********************************@l42g2000 hsc.googlegroups.com...
On Jul 22, 7:55 pm, "Stanimir Stoyanov" <stoya...@REMOVETHIS.live.com>
wrote:
In case you are writing a program that need to interact with the Desktop
Window Manager, manage Glass or blur on your forms/windows, you might want
to check the series of posts I am writing on this matter
athttp://stoyanoff.info/code/glasslib/.

The library (GlassLib) is open source and can be compiled for Windows
Forms,
Windows Presentation Foundation, or with no dependencies whatsoever (it
operates with window handles in this case).
Great stuff, but it seems like precisely the right case to use
extension methods to transparently introduce those new members on Form
class. E.g. instead of:

Dwm.Glass[form] = new DwmMargins(100, 4, 8, 20);

something like:

form.GetDwm().Glass = new DwmMargins(100, 4, 8, 20);

Jul 22 '08 #3
do you need to support "legacy" environments? we're by definition only
talking about vista and above, right?

"Stanimir Stoyanov" <st******@REMOVETHIS.live.comwrote in message
news:C1**********************************@microsof t.com...
Thanks for the suggestion, Pavel. I will take it into consideration and
work on a version with extensions but still leave properties for use in
legacy (well, older) versions of Visual Studio and .NET Framework.

Best Regards,
Stanimir Stoyanov | www.stoyanoff.info

"Pavel Minaev" <in****@gmail.comwrote in message
news:2d**********************************@l42g2000 hsc.googlegroups.com...
On Jul 22, 7:55 pm, "Stanimir Stoyanov" <stoya...@REMOVETHIS.live.com>
wrote:
>In case you are writing a program that need to interact with the Desktop
Window Manager, manage Glass or blur on your forms/windows, you might
want
to check the series of posts I am writing on this matter
athttp://stoyanoff.info/code/glasslib/.

The library (GlassLib) is open source and can be compiled for Windows
Forms,
Windows Presentation Foundation, or with no dependencies whatsoever (it
operates with window handles in this case).

Great stuff, but it seems like precisely the right case to use
extension methods to transparently introduce those new members on Form
class. E.g. instead of:

Dwm.Glass[form] = new DwmMargins(100, 4, 8, 20);

something like:

form.GetDwm().Glass = new DwmMargins(100, 4, 8, 20);
Jul 22 '08 #4
On Jul 23, 2:43*am, "Leon Jollans" <myforen...@mysurname.comwrote:
do you need to support "legacy" environments? we're by definition only
talking about vista and above, right?
Vista was released in 2006, and predates .NET 3.5 and C# 3.0. So, yes,
it makes sense to support .NET/C# 2.0 as well.
Jul 23 '08 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Erik Bethke | last post: by
4 posts views Thread by Jürgen Müllder | last post: by
4 posts views Thread by harvie wang | last post: by
6 posts views Thread by Bob Altman | last post: by
5 posts views Thread by Oriane | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.