int indexAccel,
wxRect *rectBounds)
{
+ wxDCTextColourChanger clrChanger(dc);
+
wxRect rectLabel = rect;
if ( !label.empty() && (flags & wxCONTROL_DISABLED) )
{
}
// draw shadow of the text
- dc.SetTextForeground(m_penHighlight.GetColour());
+ clrChanger.Set(m_penHighlight.GetColour());
wxRect rectShadow = rect;
rectShadow.Offset(1, 1);
dc.DrawLabel(label, rectShadow, alignment, indexAccel);
// make the main label text grey
- dc.SetTextForeground(m_penDarkGrey.GetColour());
+ clrChanger.Set(m_penDarkGrey.GetColour());
if ( flags & wxCONTROL_FOCUSED )
{