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
).
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!!