To add a Maximize/Minimize/System button to your dialog
Open the Dialog Attributes window. Check the System Button or Maximizable or Minimizable entry.
When the System Button entry is checked, the dialog's standard control menu is available. This includes the control menu box (to close the dialog), the title bar, and the Maximize and Minimize buttons.