fix borland error about string refernce
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40597 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -849,11 +849,10 @@ bool wxButton::MSWOnDraw(WXDRAWITEMSTRUCT *wxdis)
|
|||||||
}
|
}
|
||||||
|
|
||||||
COLORREF colFg = wxColourToRGB(GetForegroundColour());
|
COLORREF colFg = wxColourToRGB(GetForegroundColour());
|
||||||
DrawButtonText(hdc, &rectBtn,
|
if ( state & ODS_DISABLED ) colFg = GetSysColor(COLOR_GRAYTEXT) ;
|
||||||
state & ODS_NOACCEL ? GetLabelText()
|
wxString label = GetLabel();
|
||||||
: GetLabel(),
|
if ( state & ODS_NOACCEL ) label = GetLabelText() ;
|
||||||
state & ODS_DISABLED ? GetSysColor(COLOR_GRAYTEXT)
|
DrawButtonText(hdc, &rectBtn, label, colFg);
|
||||||
: colFg);
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user