]> git.saurik.com Git - wxWidgets.git/commitdiff
Don't explicitly set the background colour for wxChoice.
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 18 Dec 2009 20:49:29 +0000 (20:49 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 18 Dec 2009 20:49:29 +0000 (20:49 +0000)
This is unnecessary and results in flicker when the control is resized because
we explicitly erase its background ourselves and then it does it itself.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62933 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/choice.cpp

index 5abb57a2c55e5739a35e4b0c3c150414a17585e7..b6cdd7b9c9f12bce6e71e94067b9e444f7e2ccda 100644 (file)
@@ -142,10 +142,6 @@ bool wxChoice::CreateAndInit(wxWindow *parent,
         return false;
 
 
-    // choice/combobox normally has "white" (depends on colour scheme, of
-    // course) background rather than inheriting the parent's background
-    SetBackgroundColour(wxSystemSettings::GetColour(wxSYS_COLOUR_WINDOW));
-
     // initialize the controls contents
     for ( int i = 0; i < n; i++ )
     {