quote:
Originally posted by SmokingCookie
You need to specify a PlaceHolderElement at the size and position of the child window.
Okay, done that.
quote:
Originally posted by SmokingCookie
Then hook WM_SIZE into your parent window and use PlusWnd::GetElementPos() to retrieve the relative coordinates, which you need to pass to SetWindowPos() in User32.dll.
I don't know where to start for doing that... something like this?
js code:
var WndCommandBar_Shell = MsgPlus.CreateWnd("Windows.xml", "WndCommandBar_Shell", 0); // parent
var WndCommandBar_CMain = MsgPlus.CreateChildWnd(WndCommandBar_Shell, "Windows.xml", "WndCommandBar_CMain", 12, 2); // child
Interop.Call("User32", "SetWindowPos", WndCommandBar_Shell.Handle, WndCommandBar_Shell.GetElementPos());