From 28319afe559ccc061d15e5a5cb7208959f5c771e Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Tue, 13 Nov 2007 12:17:25 +0000 Subject: [PATCH] Tidying git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49894 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/vlbox.h | 2 +- src/msw/control.cpp | 2 -- src/msw/window.cpp | 19 +------------------ 3 files changed, 2 insertions(+), 21 deletions(-) diff --git a/include/wx/vlbox.h b/include/wx/vlbox.h index 72c6170bc2..e746c8f863 100644 --- a/include/wx/vlbox.h +++ b/include/wx/vlbox.h @@ -202,7 +202,7 @@ public: GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL); protected: - virtual wxBorder GetDefaultBorder() const { return GetDefaultBorderForControl(); } + virtual wxBorder GetDefaultBorder() const { return wxBORDER_THEME; } // the derived class must implement this function to actually draw the item // with the given index on the provided DC diff --git a/src/msw/control.cpp b/src/msw/control.cpp index f0d866b275..7ead340643 100644 --- a/src/msw/control.cpp +++ b/src/msw/control.cpp @@ -246,8 +246,6 @@ wxSize wxControl::DoGetBestSize() const wxBorder wxControl::GetDefaultBorder() const { return wxControlBase::GetDefaultBorder(); - -// return GetDefaultBorderForControl(); } // This is a helper for all wxControls made with UPDOWN native control. diff --git a/src/msw/window.cpp b/src/msw/window.cpp index c3b83772f4..8037b29d9d 100644 --- a/src/msw/window.cpp +++ b/src/msw/window.cpp @@ -1288,28 +1288,11 @@ void wxWindowMSW::MSWUpdateStyle(long flagsOld, long exflagsOld) wxBorder wxWindowMSW::GetDefaultBorderForControl() const { - // we want to automatically give controls a sunken style (confusingly, - // it may not really mean sunken at all as we map it to WS_EX_CLIENTEDGE - // which is not sunken at all under Windows XP -- rather, just the default) - -#if defined(__POCKETPC__) || defined(__SMARTPHONE__) - return wxBORDER_SIMPLE; -#else -#if wxUSE_UXTHEME - if (CanApplyThemeBorder()) - { - wxUxThemeEngine* theme = wxUxThemeEngine::GetIfActive(); - if (theme) - return wxBORDER_THEME; - } -#endif - return wxBORDER_SUNKEN; -#endif + return wxBORDER_THEME; } wxBorder wxWindowMSW::GetDefaultBorder() const { - // return GetDefaultBorderForControl(); return wxWindowBase::GetDefaultBorder(); } -- 2.47.2