fixed default button handling: don't keep BS_DEFPUSHBUTTON style when the app loses focus

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16689 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2002-08-22 20:34:29 +00:00
parent cdfb1ae1bc
commit 7fb1b2b4c4
2 changed files with 62 additions and 45 deletions

View File

@@ -73,8 +73,8 @@ protected:
void SetTmpDefault();
void UnsetTmpDefault();
static void UpdateDefaultStyle(wxWindow *winDefault,
wxWindow *winOldDefault);
// set or unset BS_DEFPUSHBUTTON style
static void SetDefaultStyle(wxButton *btn, bool on);
// usually overridden base class virtuals
virtual wxSize DoGetBestSize() const;