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)