Minimize/Maximize Buttons for DialogWindows?

Is there a way to create a min/max set of buttons for dialog windows?

And while I’m on the subject, when I click the close button, the window dissapears but my app doesn’t exit. Is there an event I have to handle?

add JuceApplication::quit() to the destructor of your DialogWindow’s content component to make your application exit when the dialog window is closed.

I implemented minimize button, the source code is here:

http://achitophelconsulting.com/index.php?option=com_content&task=view&id=29&Itemid=75&troozers=c1ded65f9bbde8b742221bf3c3b5764e