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. [?] Toggle display of PlusWnd taskbar button...
Javascript 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); // hide window
    var Get = Interop.Call("user32", "GetWindowLong", PlusWnd.Handle, -20); // -20 for extended window styles    Get += (PlusWnd.Button_IsChecked("ChkTop") ? 262016 : -262016); // toggle APPWINDOW / TOOLWINDOW
    Interop.Call("user32", "SetWindowLong", PlusWnd.Handle, -20, Get); // set new flag
    Interop.Call("user32", "ShowWindow", PlusWnd.Handle, 1); // show window
}


Error: unknown (code: -2147467259) at highlighted line.  MSDN says the GetWindowLong function returns a LONG type result - is this the problem?
06-05-2011 04:35 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