Hello everybody and sorry for bringing the GUI from DLL topic up again but i’m quite stuck at the moment
I’m trying to implement something similar to VSTs
My host application is providing a HWND to a DLL plugin
the DLL is using JUCE to create a GUI component wich should rendered to the HWND from the host window.
So far the dll is loading and i have sucessfully Rendered the GUI to the window of the host - the juceVST code was a great help.
My problem is that the GUI in the host window is not getting any mouse events. In the VST code there is code for linux and mac to forward mouse events to the plugin, but i couldn’t find any code for windows. How is this done with the JUCE VSTs?
In the DLL I call
I have added my GUI component to the parent HWND via
[code]mGui = new MainComponent();
mGui->setOpaque(true);
mGui->setVisible (true);
mGui->setSize(400,400);
mGui->addToDesktop(0,parent);
[/code]
I do the repaint via an idle() callback from the host.
There doesn’t seem to be a ‘SharedMessageThread’ function like on Linux and also no MouseHook besides the wheel.
In the juce plugin host the “overload mouse/keyboard events to forward them to the plugin’s inner window…” functions are only available for mac/linux
any hints are very appreciated
comboy