What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » HELP - Resizing a child window!

HELP - Resizing a child window!
Author: Message:
SmokingCookie
Senior Member
****

Avatar

Posts: 815
Reputation: 15
30 / Male / Flag
Joined: Jul 2007
RE: HELP - Resizing a child window!
Like I said, I didn't have the time this morning. I had a few hours off at school, so I rush-finished some homework (still too late for school though :$ :P ).

Anyway, seems like I was confused by the window IDs. I'm used to a system like this:

JScript code:
//Some example code demonstrating Window IDs and child IDs

var PlusWnd = MsgPlus.CreateWnd("Wnd.xml","WndTest");
var ChildWnd = MsgPlus.CreateChildWnd(PlusWnd,"Wnd.xml","WndTest_Child",0,0,true);

You might wanna try this yourself ;)

And I think I've found the error:

XML code:
    <Elements>
        <Element xsi:type="PlaceHolderElement" Id="PhlChild"> <!-- Check the element ID here -->
            <Position Left="10" Top="0" Width="172" Height="26"/>
        </Element>
    </Elements>

JScript code:
function OnWndCommandBar_ShellEvent_MessageNotification(PlusWnd, Message, wParam, lParam)
{
    if (Message == 0x5)
    {
        var posChild = RetrievePos(WndCommandBar_Shell,"PlhChild"); // Check the element ID here too
        Interop.Call("user32","MoveWindow",WndCommandBar_CMain.Handle,posChild.x,posChild.y,posChild.Width,posChild.Height,true); // Thought this would solve it...
    }
}

That's one common error I've experienced MANY times.. ^0)

* Even more angry at Matti....
AGAIN!! :S :P

This post was edited on 09-14-2009 at 05:22 PM by SmokingCookie.
09-14-2009 05:20 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
HELP - Resizing a child window! - by whiz on 09-12-2009 at 01:28 PM
RE: HELP - Resizing a child window! - by SmokingCookie on 09-12-2009 at 02:24 PM
RE: HELP - Resizing a child window! - by whiz on 09-12-2009 at 02:35 PM
RE: HELP - Resizing a child window! - by SmokingCookie on 09-12-2009 at 02:49 PM
RE: HELP - Resizing a child window! - by whiz on 09-12-2009 at 03:09 PM
RE: HELP - Resizing a child window! - by Matti on 09-12-2009 at 03:32 PM
RE: HELP - Resizing a child window! - by whiz on 09-13-2009 at 09:59 AM
RE: HELP - Resizing a child window! - by SmokingCookie on 09-12-2009 at 03:33 PM
RE: HELP - Resizing a child window! - by Matti on 09-12-2009 at 03:42 PM
RE: HELP - Resizing a child window! - by SmokingCookie on 09-12-2009 at 03:46 PM
RE: HELP - Resizing a child window! - by Matti on 09-13-2009 at 10:10 AM
RE: HELP - Resizing a child window! - by whiz on 09-13-2009 at 10:33 AM
RE: HELP - Resizing a child window! - by SmokingCookie on 09-14-2009 at 07:39 AM
RE: HELP - Resizing a child window! - by whiz on 09-14-2009 at 03:55 PM
RE: HELP - Resizing a child window! - by Matti on 09-14-2009 at 05:20 PM
RE: HELP - Resizing a child window! - by SmokingCookie on 09-14-2009 at 05:20 PM
RE: HELP - Resizing a child window! - by whiz on 09-14-2009 at 05:58 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