Don't show wrong shade of grey when disabled
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27194 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -893,9 +893,6 @@ WXHBRUSH wxRadioBox::OnCtlColor(WXHDC pDC, WXHWND WXUNUSED(pWnd), WXUINT WXUNUSE
|
|||||||
HDC hdc = (HDC)pDC;
|
HDC hdc = (HDC)pDC;
|
||||||
wxColour colBack = GetBackgroundColour();
|
wxColour colBack = GetBackgroundColour();
|
||||||
|
|
||||||
if (!IsEnabled())
|
|
||||||
colBack = wxSystemSettings::GetColour(wxSYS_COLOUR_3DFACE);
|
|
||||||
|
|
||||||
::SetBkColor(hdc, wxColourToRGB(colBack));
|
::SetBkColor(hdc, wxColourToRGB(colBack));
|
||||||
::SetTextColor(hdc, wxColourToRGB(GetForegroundColour()));
|
::SetTextColor(hdc, wxColourToRGB(GetForegroundColour()));
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user