I’m trying to hide a window from the taskbar.
Following julian’s comments, I overrided getDesktopWindowStyleFlags() in my window (which inherits from a DocumentWindow).
So, I can set all the flags as I want, except for the windowAppearsOnTaskbar flag.
According to the comments, I should call DocumentWindow::getDesktopWindowStyleFlags() and then remove ComponentPeer::windowAppearsOnTaskbar from it.
It doesn’t work.
I think the problem could be in
TopLevelWindow::getDesktopWindowStyleFlags(),
where by default the windowAppearsOnTaskbar flag is set.
Or am I missing something?
All the other flags work perfectly.
Ok, I digged a bit more.
Looks like using a native title bar is messing up with the flags.
Here’s a sample code. Just Unzip the file in the “extras” folder.
This affects windows only.
Thanks
The win32 code already uses that flag, but not if it has title bar, because if you turn it on, it changes the appearance of the title bar. I guess that’s not necessarily a bad thing, I might try it and see what it looks like.
Thank you!
It’s not a bad idea. I see a lot of software that uses this kind of windows.
It comes very handy when displaying, for instance, plugins editors (see cubase).