Ke -
Trying to make a window a child of another window can be problematic since the hosting window does not know about the child window. You are welcome to try. In the case of the sequence editor the main hWnd registered with TestStand is the main application. The MDI area is a child of that and you could use FindWindowEx to get it.
Your code might look something like
TS::IEnginePtr engine = context->GetEngine();
HWND hParent = (HWND)engine->GetAppMainHwnd();
hParent = FindWindowEx(hParent, NULL, "MDIClient", "");
HWND hChild = CreateWindowEx(
WS_EX_LEFT | WS_EX_LTRREADING | WS_EX_RIGHTSCROLLBAR | WS_EX_MDICHILD | WS_EX_WINDOWEDGE,
"ChildWClass", "WindowName",
WS_CHILDWINDOW | WS_CLIPSIBLINGS | WS_OVERLAPPEDWINDOW | WS_VISIBLE,
200, 200, 400, 200,
hParent, NULL, NULL, NULL);
If you are creating this window using an call to a DLL in an execution, you need to make sure thae DLL that creates your child window stays in memory by calling LoadLibrary on itself.
Scott Richardson
https://testeract.com