What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [Help] Always on top window

[Help] Always on top window
Author: Message:
andrewdodd13
Senior Member
****

Avatar
Oh so retro

Posts: 870
Reputation: 16
34 / Male / Flag
Joined: Jan 2005
O.P. [Help] Always on top window
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?
[Image: AndrewsStyle.png]
07-13-2008 10:17 PM
Profile E-Mail PM Web Find Quote Report
TheSteve
Full Member
***

Avatar
The Man from Japan

Posts: 179
Reputation: 23
40 / Male / Flag
Joined: Aug 2005
RE: [Help] Always on top window
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
07-14-2008 12:51 AM
Profile PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On