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: