Results 1 to 4 of 4

Thread: Make Max Window size less.

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Mar 2006
    Posts
    413

    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

  2. #2
    Oi, fat-rag! bushmobile's Avatar
    Join Date
    Mar 2004
    Location
    on the poop deck
    Posts
    5,592

    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.

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Mar 2006
    Posts
    413

    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 Attached Images  
    Visual Studio .NET 2005/.NET Framework 2.0

  4. #4
    Oi, fat-rag! bushmobile's Avatar
    Join Date
    Mar 2004
    Location
    on the poop deck
    Posts
    5,592

    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
  •  



Click Here to Expand Forum to Full Width