I'm trying to embed a window into my own.
I somehow new it would not be as simple as it sounded, so I'd like a pointer where else to look if anyone can help.
hMyOwnWindow //HWND
hExternalWindow // HWND
//size the external window so it will fit.
MoveWindow(hExternalWindow,19,102,383,400,true);
//set style of window
if(!SetWindowLong(hExternalWindow,GWL_STYLE, WS_CHILD | WS_VISIBLE)){MessageBox(nullptr, L"SetWindowLong fail", L"Error", MB_OK);};
//set external as child of own window
if(!SetParent(hExternalWindow,hMyOwnWindow)){MessageBox(nullptr, L"SetParent fail", L"Error", MB_OK);};
I do not get any errors, but the external window does not embed/dock/move with my own window.
I've a feeling I've missed something rather than doing something wrong.