Shoutbox

[Help] Always on top window - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Thread: [Help] Always on top window (/showthread.php?tid=84814)

[Help] Always on top window by andrewdodd13 on 07-13-2008 at 10:17 PM

Hi clever scripters,

Got a little problem. I have a window which I want to dock to either the top or bottom of the screen, like the start menu. I can make the window stay on top of other windows with
var result = Interop.Call("User32.dll", "SetWindowPos", mawindae.Handle, -1, 0, 800, 1440, 25, 3);
but this doesn't resize windows around it, if you see what I mean. So if the window was at the top of the screen, it'd hide the title frame of windows below it, and if my window was at the bottom, it would hide the status bars of lower windows.

Any way to do this?


RE: [Help] Always on top window by TheSteve on 07-14-2008 at 12:51 AM

If I understand you correctly, you want to make a window act similar to the taskbar so that it does not get obstructed by the other windows.  If this is the case, you'll want to use the SHAppBarMessage API function (shell32.dll).

http://msdn.microsoft.com/en-us/library/bb762108(VS.85).aspx