Create heavy weight window


#1

Hi together,
I want to create a heavy weight window with it’s own hwnd and want to host it in a JUCE component. Is there an easy way to create such a window with JUCE? Thanks in advance.


#2

There’s no class specifically for that, but you could take a look at things like the opengl component to see how the library classes do it.


#3

I tried to use Win32ComponentPeer, but it’s in “juce_win32_Windowing.cpp”. I tried to #undef JUCE_INCLUDED_FILE, but I still can’t include the file in my cpp file. Am I missing something? I’m using the amalgamated version.


#4

Win32ComponentPeer is an internal class, definitely not for public use. You can get the HWND using Component::getWindowHandle() though.