What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [?] SetWindowPos Problem

[?] SetWindowPos Problem
Author: Message:
Spunky
Former Super Mod
*****

Avatar

Posts: 3658
Reputation: 61
36 / Male / Flag
Joined: Aug 2006
O.P. [?] SetWindowPos Problem
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?
<Eljay> "Problems encountered: shit blew up" :zippy:
12-22-2006 01:19 AM
Profile PM Find Quote Report
Silentdragon
Full Member
***

Avatar
if(life==null && wrists) EmoAlert();

Posts: 148
Reputation: 2
34 / Male / –
Joined: Jun 2006
RE: [?] SetWindowPos Problem
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.
12-22-2006 01:35 AM
Profile E-Mail PM Web Find Quote Report
Spunky
Former Super Mod
*****

Avatar

Posts: 3658
Reputation: 61
36 / Male / Flag
Joined: Aug 2006
O.P. RE: [?] SetWindowPos Problem
Thanks! Works a treat. :P
<Eljay> "Problems encountered: shit blew up" :zippy:
12-22-2006 02:19 AM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »


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