…first of all apologies I’m a Windows dev noob…
I’m adding a Juce component to a native window very much like the VST wrapper etc. like so
const int w = x->juceEditorComp->getWidth();
const int h = x->juceEditorComp->getHeight();
x->juceWindowComp->setBounds(0, 0, w, h);
x->juceEditorComp->addToDesktop (0);
HWND hostWindow = wind_gethwnd(x->window);
HWND editorWnd = (HWND) x->juceEditorComp->getWindowHandle();
SetParent (editorWnd, hostWindow);
DWORD val = GetWindowLong (editorWnd, GWL_STYLE);
val = (val & ~WS_POPUP) | WS_CHILD;
SetWindowLong (editorWnd, GWL_STYLE, val);
x->juceEditorComp->setVisible (true);
x is a struct for my app and wind_gethwnd() is a function from the API I’m using (MaxMSP) which should return the HWND of the window I want to place the component in. It sort of works:
…but as you can see - no text. It works on Mac using HIViews:
Any ideas what I’m doing wrong?
