The main window has two special buttons:
- Minimize
- Close
These buttons minimize and close the window correspondingly.
Usually they appear in the right top corner (but you can move them to any position).

Property Type should be set to following:
| Button "Minimize" | SC_MINIMIZE |
| Button "Close" | SC_CLOSE |
Properties ID and Name are not important.
Other properties should have the same value as a regular button.