Sign in to follow this  
Followers 0
orange

Reserve desktop space?

8 posts in this topic

Is there any way to reserve desktop space with auto it? For instance, with the start menu, it reserves its own space so that no window can be maximized beyond its upper border.

Can we do this?

Share this post


Link to post
Share on other sites



your example of the start menu makes no sense to me. yes you can maximize windows bigger then the start menu.

well yes, but by default the start menu is set so that windows cannot. reserving desktop space is what an app does when it docks. I am just seeing if it is possible to have a docking application.

If we have an app that is set to always on top, windows are maximized and they are set behind the "on top" window.

I am lookign to write an app that docks itself so that no window can be maximized over it, rather that they maximize to border it.

does that make sense?

Share this post


Link to post
Share on other sites

WinSetOnTop ( "title", "text", flag )

;title The title of the window to affect. 
;text The text of the window to affect. 
;flag Determines whether the window should have the "TOPMOST" flag set.
;1=set on top flag, 0 = remove on top flag oÝ÷ Ù8Z·eÇ­¶°whÂò¢êÜzÚ²°éÓ¢,~íéÆ)¢Íçl7¯+ay%r!iÊèÂ+a¶ºÚ"µÍÚ[Ù]Ý]H
    ][ÝÝ]I][ÝË  ][ÝÝ^ ][ÝËYÈ

Share this post


Link to post
Share on other sites

WinSetOnTop ( "title", "text", flag )

;title The title of the window to affect. 
;text The text of the window to affect. 
;flag Determines whether the window should have the "TOPMOST" flag set.
;1=set on top flag, 0 = remove on top flag oÝ÷ Ù8Z·eÇ­¶°whÂò¢êÜzÚ²°éÓ¢,~íéÆ)¢Íçl7¯+ay%r!iÊèÂ+a¶ºÚ"µÍÚ[Ù]Ý]H
    ][ÝÝ]I][ÝË  ][ÝÝ^ ][ÝËYÈ

and just do that for all windows?

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

He's talking about how the taskbar reserves space, meaning, a window automatically knows not to maximize larger than (desktop - taskbar height).

Sorry, I don't know the answer, but I use Litestep, and it's really easy to do with that.

Edited by xcal

Share this post


Link to post
Share on other sites

The SystemParametersInfo() function with the SPI_SETWORKAREA flag may be what you are looking for. Look at that function in MSDN for more details.

Share this post


Link to post
Share on other sites

#8 ·  Posted (edited)

$oHWND = "title"
WinSetState($oHWND, "" @SW_MAXIMIZE)

Edited by aceloc

[quote name='AceLoc']I gots new sunglasses there cool.[/quote]

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0