473,468 Members | 1,329 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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 8702
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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.