mirror of
https://github.com/wxWidgets/wxWidgets.git
synced 2026-09-26 18:18:26 +08:00
Fix wxBitmapComboBox for system color change
Remove an unnecessary SetBackgroundColour() to allow system color change events to take effect. The default background color is already correct. Closes #26721.
This commit is contained in:
committed by
Vadim Zeitlin
parent
fbbeb21d8f
commit
5ec278eb4d
@@ -522,10 +522,6 @@ void wxComboBox::MSWRecreate()
|
||||
m_backgroundColour = wxNullColour;
|
||||
SetBackgroundColour(colBg);
|
||||
}
|
||||
else
|
||||
{
|
||||
SetBackgroundColour(wxSystemSettings::GetColour(wxSYS_COLOUR_WINDOW));
|
||||
}
|
||||
|
||||
// Revert the old string value
|
||||
if ( !HasFlag(wxCB_READONLY) )
|
||||
|
||||
Reference in New Issue
Block a user