Shoutbox

[?] SetWindowPos Problem - 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: [?] SetWindowPos Problem (/showthread.php?tid=69799)

[?] SetWindowPos Problem by Spunky on 12-22-2006 at 01:19 AM

I've been using:

code:
Interop.Call("user32.dll","SetWindowPos",PlusWnd.GetControlHandle("blah"),0,0,0,0,0,80);

to hide a specific control on a PlusWnd. The problem is however, that when I want to show it again,
code:
Interop.Call("user32.dll","SetWindowPos",PlusWnd.GetControlHandle("blah"),0,0,0,0,0,40);

returns 1 meaning it worked, but I still cannot see the control... Any ideas?

RE: [?] SetWindowPos Problem by Silentdragon on 12-22-2006 at 01:35 AM

Try

code:
Interop.Call('user32', 'ShowWindow', aeWnd.GetControlHandle('RdoFWord'), SW_HIDE);
and
code:
Interop.Call('user32', 'ShowWindow', aeWnd.GetControlHandle('RdoFWord'), SW_SHOW);

code:
var SW_HIDE = 0;
var SW_SHOW = 5;

Been using it in my scripts for quite awhile.
RE: [?] SetWindowPos Problem by Spunky on 12-22-2006 at 02:19 AM

Thanks! Works a treat. :P