Factor out wxTopLevelWindow::MSWEnableCloseButton()

Make it possible to reuse this code for other, non-wx, windows.

No real changes, this is just a pure refactoring.
This commit is contained in:
Vadim Zeitlin
2017-10-28 23:24:51 +02:00
parent 79e2adf916
commit fdfd8efa83
2 changed files with 12 additions and 3 deletions

View File

@@ -90,6 +90,9 @@ public:
// NULL if getting the system menu failed.
wxMenu *MSWGetSystemMenu() const;
// Enable or disable the close button of the specified window.
static bool MSWEnableCloseButton(WXHWND hwnd, bool enable = true);
// implementation from now on
// --------------------------