What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [?] Toggle display of PlusWnd taskbar button...

[?] Toggle display of PlusWnd taskbar button...
Author: Message:
whiz
Senior Member
****


Posts: 568
Reputation: 8
– / – / Flag
Joined: Nov 2008
O.P. RE: [?] Toggle display of PlusWnd taskbar button...
Yeah, I got it now.  :)

js code:
// ...
TopToggle: function(PlusWnd)
{
    Interop.Call("user32", "SetWindowPos", PlusWnd.Handle, PlusWnd.Button_IsChecked("ChkTop") ? -1 : -2, 0, 0, 0, 0, 3);
    Interop.Call("user32", "ShowWindow", PlusWnd.Handle, 0);
    var Get = Interop.Call("user32", "GetWindowLongW", PlusWnd.Handle, -20)
    if (PlusWnd.Button_IsChecked("ChkTop"))
    {
        Get = Get & ~0x40000; // remove WS_EX_APPWINDOW
        Get = Get | 0x80; // add WS_EX_TOOLWINDOW
    }
    else
    {
        Get = Get | 0x40000; // add WS_EX_APPWINDOW
        Get = Get & ~0x80; // remove WS_EX_TOOLWINDOW
    }
    Interop.Call("user32", "SetWindowLongW", PlusWnd.Handle, -20, Get);
    Interop.Call("user32", "ShowWindow", PlusWnd.Handle, 1);
},
// ...
It's going to be part of my DevPlus tool, so it hides the taskbar button when topmost.  :P
06-08-2011 07:44 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
[?] Toggle display of PlusWnd taskbar button... - by whiz on 06-05-2011 at 04:35 PM
RE: [?] Toggle display of PlusWnd taskbar button... - by Eljay on 06-05-2011 at 04:44 PM
RE: [?] Toggle display of PlusWnd taskbar button... - by whiz on 06-07-2011 at 07:56 AM
RE: [?] Toggle display of PlusWnd taskbar button... - by CookieRevised on 06-07-2011 at 10:24 AM
RE: [?] Toggle display of PlusWnd taskbar button... - by Matti on 06-07-2011 at 01:21 PM
RE: [?] Toggle display of PlusWnd taskbar button... - by CookieRevised on 06-07-2011 at 02:50 PM
RE: [?] Toggle display of PlusWnd taskbar button... - by whiz on 06-08-2011 at 07:44 PM


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