Support maximize/minimize on caption area

When a user double clicks the caption area the form window state should toggle
between either maximized or normal.
Merge pull request #1 from peters/patch-1

Support maximize/minimize on caption area