Well,...
- First of all you need to make a window with a WindowTmpl (ChildTmpl don't work and DialogTmpl looks ugly) which has your two buttons. Then, you can eventually remove the borders. (look in the documentation)
- Now, you need to create your window but don't show it yet.
code:
var PlusWnd = MsgPlus.CreateWnd("Windows.xml", "MyWnd", 2); //The 2 prevents it from being visible when it's created
- Here's the big trick: you have to set the chat window as the parent of the window:
code:
var Result = Interop.Call("User32.dll", "SetParent", PlusWnd.Handle, ChatWnd.Handle); //Make sure ChatWnd is valid. Result can be used to check if the function succeeded.
- Set the width and height of the window
code:
var Result = Interop.Call("User32.dll", "SetWindowPos", PlusWnd.Handle, 0, 0, 0, 100, 50, 18); //100 is the width, 50 is the height
- Position your window in the chat window. We'll place it 250 pixels from the bottom and 120 pixels from the right. Therefore, we first need the size of the chat window.
code:
var RECT = Interop.Allocate(16);
var Result = Interop.Call("User32", "GetWindowRect", ChatWnd.Handle * 1, RECT);
var CurWidth = RECT.ReadDWORD(8) - RECT.ReadDWORD(0);
var CurHeight = RECT.ReadDWORD(12) - RECT.ReadDWORD(4);
var x = CurWidth - 120;
var y = CurHeight - 250;
var Result = Interop.Call("User32.dll", "SetWindowPos", PlusWnd.Handle, 0, x, y, 0, 0, 17);
- Now, make it visible!

code:
PlusWnd.Visible = true
The problem is that when you resize the window, our window will disappear. Therefore, you need to add a timer which repositions the timer every x seconds, somewhere between 100 to 500 milliseconds should do. In other words: add a timer event which repeats step 5 every 100 milliseconds.
All credits go to Timezone by Shondoit!
[OFFTOPIC]Ik ben ook Nederlandstalig (Vlaams) hoor!
[/OFFTOPIC]