I am trying to do something a little unusual… (don’t you love posts that start like that!)
I am creating a library which 3rd parties will use. They will link to the library statically. These people will not be using Juce necessarily. However, I would like to be able to create Juce Component derived objects by exporting static interface functions such as:
LibComp * myComp = createLIbComp(…);
The 3rd parties need to be able to add these objects as native child windows of their GUIS, move them and resize them, etc. I could force all of this to happen through interface functions in my LibComp class if necessary, although the holy grail would be for the 3rd party to be able to use native windows messaging. I see that I can use getWindowHandle to get the native window handle. Before I go and implement something based on using this, will the window handle returned by getWindowHandle actually be able to handle native messages to do things like setting a new parent and resizing or moving? If not, is there some other way to do this?
By the way, I will ensure that initialJuce_GUI() is called from within my library.
Thanks for any and all advice!