Sep 21st, 2006, 09:19 AM
#1
Thread Starter
Hyperactive Member
Make Max Window size less.
I want to make all applications stay away from the right edge of my screen by about 100 pixals. Is there a way to do this via API?
When I say stay away is that when they are maximized, the width is set to 100 pixals less than my screen size.
Visual Studio .NET 2005/.NET Framework 2.0
Sep 21st, 2006, 12:19 PM
#2
Re: Make Max Window size less.
check out the SetParametersInfo with the SPI_SETWORKAREA constant.
why do you want to do this anyway? if you're looking to create a 'side bar' style app then there are different ways.
Sep 21st, 2006, 12:48 PM
#3
Thread Starter
Hyperactive Member
Re: Make Max Window size less.
What other ways are there to do it. I made a form that sits on the side of my screen to open other forms. It's just seveal buttons.
Attached Images
Visual Studio .NET 2005/.NET Framework 2.0
Sep 21st, 2006, 12:52 PM
#4
Re: Make Max Window size less.
you'll probably want to register you program as an AppBar (then it'll resize the desktop work area and you can have it autohide if you want and stuff like that). To do that you'll need the SHAppBarMessage API.
I'm afraid I don't know of any .Net examples, but if you search I'm sure you'll find some
edit: or maybe .Net has it built in - i dunno
Posting Permissions
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Rules
Click Here to Expand Forum to Full Width