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:
@@ -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
|
||||
// --------------------------
|
||||
|
Reference in New Issue
Block a user