diff --git a/src/msw/button.cpp b/src/msw/button.cpp index 7ca213e413..1470b0c044 100644 --- a/src/msw/button.cpp +++ b/src/msw/button.cpp @@ -351,6 +351,8 @@ wxWindow *wxButton::SetDefault() // ... and Windows SetDefaultStyle(wxDynamicCast(winOldDefault, wxButton), false); SetDefaultStyle(this, true); + + return winOldDefault; } // set this button as being currently default