# \[SOLVED\] minimiseButtonPressed not getting called

**URL:** <https://forum.juce.com/t/solved-minimisebuttonpressed-not-getting-called/20122>\
**Category:** General JUCE discussion\
**Created:** [December 2, 2016, 3:24pm UTC](https://forum.juce.com/t/solved-minimisebuttonpressed-not-getting-called/20122 "2016-12-02T15:24:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![fubyo](https://avatars.discourse-cdn.com/v4/letter/f/4da419/32.png) [@fubyo](https://forum.juce.com/u/fubyo)\
**Post date:** [December 2, 2016, 3:24pm UTC](https://forum.juce.com/t/solved-minimisebuttonpressed-not-getting-called/20122/1 "2016-12-02T15:24:55Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![ed95](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/ed95/32/7635_2.png) [@ed95](https://forum.juce.com/u/ed95)\
**Post date:** [December 5, 2016, 9:41am UTC](https://forum.juce.com/t/solved-minimisebuttonpressed-not-getting-called/20122/2 "2016-12-05T09:41:46Z")

</div>

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.

Ed

---

<div class="post-metadata">

**Author:** ![fubyo](https://avatars.discourse-cdn.com/v4/letter/f/4da419/32.png) [@fubyo](https://forum.juce.com/u/fubyo)\
**Post date:** [December 5, 2016, 1:14pm UTC](https://forum.juce.com/t/solved-minimisebuttonpressed-not-getting-called/20122/3 "2016-12-05T13:14:08Z")

</div>

Thanks a lot, Ed! I missed this one.
