From 546a94820624484f224d9db0ba4690755a2eef0d Mon Sep 17 00:00:00 2001 From: Dimitri Schoolwerth Date: Sun, 11 May 2014 22:51:05 +0000 Subject: [PATCH] Added default parameter to EnableCloseButton(). Previously the default parameter was only available in wxMSW and wxGTK. Added it to the base class as well to allow EnableCloseButton() calls without a parameter under other platforms too. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@76496 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/toplevel.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/wx/toplevel.h b/include/wx/toplevel.h index 232ae9fd1a..e06d261679 100644 --- a/include/wx/toplevel.h +++ b/include/wx/toplevel.h @@ -205,7 +205,7 @@ public: virtual wxString GetTitle() const = 0; // enable/disable close button [x] - virtual bool EnableCloseButton(bool WXUNUSED(enable) ) { return false; } + virtual bool EnableCloseButton(bool WXUNUSED(enable) = true) { return false; } // Attracts the users attention to this window if the application is // inactive (should be called when a background event occurs)