From cd57c6d690cfd9c35b8b633f7109dbf936040f14 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 18 Dec 2009 20:49:29 +0000 Subject: [PATCH] Don't explicitly set the background colour for wxChoice. 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 | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/msw/choice.cpp b/src/msw/choice.cpp index 5abb57a2c5..b6cdd7b9c9 100644 --- a/src/msw/choice.cpp +++ b/src/msw/choice.cpp @@ -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++ ) { -- 2.45.2