[SOLVED] minimiseButtonPressed not getting called

Hi everybody,
I have my MainWindow derived from DocumentWindow and according to the documentation of DocumentWindow:

virtual void DocumentWindow::minimiseButtonPressed ()
Callback that is triggered when the minimise button is pressed.
The default implementation of this calls ResizableWindow::setMinimised(), but you can override it to do more customised behaviour.

I override the function but it does not get called. Am I missing something?
I am using VS2015 on Windows 10, using a standard QUI application created with Projucer.
Thank you for your help!

That method will only be called if you’re using the JUCE title bar and not the native one. Try calling setUsingNativeTitleBar (false) in the constructor of your MainWindow.


Thanks a lot, Ed! I missed this one.