Add wxTopLevelWindow::Enable{Maximize,Minimize}Button()

Allow to disable maximize and minimize buttons dynamically just as we already
allow to disable the "Close" button using EnableCloseButton().

Currently implemented for MSW and OSX only.

Closes #17133.
This commit is contained in:
John Roberts
2015-09-06 14:17:46 +02:00
committed by Vadim Zeitlin
parent 6055d8d0a5
commit fe9a5f47f4
10 changed files with 125 additions and 0 deletions

View File

@@ -77,6 +77,8 @@ public:
// EnableCloseButton(false) used to disable the "Close"
// button on the title bar
virtual bool EnableCloseButton(bool enable = true) wxOVERRIDE;
virtual bool EnableMaximizeButton(bool enable = true) wxOVERRIDE;
virtual bool EnableMinimizeButton(bool enable = true) wxOVERRIDE;
virtual void SetLabel(const wxString& label) { SetTitle( label ); }
virtual wxString GetLabel() const { return GetTitle(); }