Shoutbox

Always On Top - 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: Always On Top (/showthread.php?tid=65405)

Always On Top by Spunky on 08-26-2006 at 09:13 AM

Making a game (I know, exciting ain't it?) and I've got an interface window open that I want to stay visible above the chat window so that you can type commands and see the outcome at the same time.

Any idea if there is an API to do this, or something similar?

It's not like gonna be a fantastic game btw, but I haven't seen many (any?) around on here yet so I thought I'd give it a bash :p


RE: Always On Top by KnRd_WC on 08-26-2006 at 10:28 AM

Hi SpunkyLoveMuff !

code:
// Top :
Interop.Call("User32.dll","SetWindowPos",WndHandle,-1,0,0,0,0,19);
//Reset :
Interop.Call("User32.dll","SetWindowPos",WndHandle,-2,0,0,0,0,19);

You can use too, in your XML file :
code:
<Window><Attributes><TopMost>true</TopMost></Attributes></Window>

;)
RE: Always On Top by Spunky on 08-26-2006 at 10:28 AM

Thanks :D (big gay hug ;))