473,372 Members | 1,114 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,372 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 8688
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Erik Bethke | last post by:
Hello All, I am trying to clean up some polish bugs with the Shanghai game I am working on and I am currently stuck on trying to get the right event for detecting when the user has changed the...
2
by: Barb | last post by:
Hi there, I sincerely hope that someone out there can help. I have two instances of the SQL 2000 Desktop Engine running. One is on my local machine for development and the other is on another...
4
by: Jürgen Müllder | last post by:
Hello! How is it possible to create somethink like that nView Desktop Manager, which docks into the WindowsBorder of an Application left sided of the Minimize/Maximize/Cose Button? Is this a...
4
by: harvie wang | last post by:
Hi, I use API GetDesktopWindow to get desktop window handle and compare with WindowFromPoint(x,y) to get window handle. GetDesktopWindow return 65556 WindowFromPoint return 65700 but I use...
2
by: John Brock | last post by:
At work we are using a virtual desktop manager called AltDesk (http://www.astonshell.com/), and it is causing a weird and extremely annoying problem with the VB.NET application I am developing. ...
0
by: boeroboy | last post by:
Hi all. I know there is a lot of mystery around the desktop context menu. Plenty of brickerbrack about adding shell menu extensions, but not much on shownig it. Using ShellContextMenu interfaces,...
6
by: Bob Altman | last post by:
Hi all, This is a long shot, but I figure it doesn't hurt to ask... I have some applications that work fine when I run them on my PC at work, but "fail to initialize (0x000005)" when I'm...
5
by: Oriane | last post by:
Hi there, I would like to run a javascript file directly from the desktop, like a VBScript file. So my post is perhaps "out of topic" in which case I apologize. The goal is to run this sort...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

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.