Shoutbox

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: Always on top window (/showthread.php?tid=85442)

Always on top window by CZFilip on 08-16-2008 at 08:21 PM

Hello, is possible to create always on top window? Thanks for response :P


RE: Always on top window by roflmao456 on 08-16-2008 at 09:19 PM

it is possible..

code:
//thx to vikke
Interop.Call("user32", "SetWindowPos", PlusWnd.Handle, -1 /*HWND_TOPMOST*/, 0, 0, 0, 0, 0x02 | 0x01);

change the "-1" to "-2" to turn off always on top.
RE: Always on top window by Eljay on 08-16-2008 at 09:23 PM

Or do it the proper way in the window XML:

code:
<Window Id="...">
    <Attributes>
        <TopMost>true</TopMost>
    </Attributes>
</Window>