Problem with windowAppearsOnTaskbar and Plugin Window


I’m using the plugin window from the vst host example.
What I’m trying to do is to remove the window from the taskbar.

I searched the forum and found some posts saying all i have to do is remove the ComponentPeer::windowAppearsOnTaskbar flag from the styleFlags, so I added the following method to the PluginWindow class

[code]int PluginWindow::getDesktopWindowStyleFlags() const
int styleFlags = DocumentWindow::getDesktopWindowStyleFlags();

//Don't show in taskbar
styleFlags &= ~ComponentPeer::windowAppearsOnTaskbar;

return styleFlags;


The problem is that this results in a broken window. It seems as if the VST editor is drawn over the titlebar now. Additionally I get a not updated area the size of the window titlebar at the bottom of the window.

the upper image shows the plugin window without the styleFlag modification, the lower image shows the window after i add the getDesktopWindowStyleFlags() method.

I also tried adding the ComponentPeer::windowHasTitleBar flag, this fixes the problem, but adds an additional native title bar around the juce title bar :frowning:

any insights what I am doing wrong?