repaired setting foreground colours for the standard controls
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31024 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -335,7 +335,11 @@ WXHBRUSH wxControl::MSWControlColorSolid(WXHDC pDC, wxColour colBg)
|
||||
{
|
||||
HDC hdc = (HDC)pDC;
|
||||
if ( m_hasFgCol )
|
||||
{
|
||||
::SetTextColor(hdc, wxColourToRGB(GetForegroundColour()));
|
||||
if ( !colBg.Ok() )
|
||||
colBg = GetBackgroundColour();
|
||||
}
|
||||
|
||||
if ( colBg.Ok() )
|
||||
{
|
||||
|
Reference in New Issue
Block a user