- DrawAntiShadedRect(dc, &rect, m_penDarkGrey, m_penHighlight);
- DrawAntiShadedRect(dc, &rect, m_penBlack, m_penHighlight);
+ if ( flags & wxCONTROL_FOCUSED )
+ {
+ DrawRect(dc, &rect, m_penBlack);
+ DrawAntiShadedRect(dc, &rect, m_penDarkGrey, m_penHighlight);
+ }
+ else // !focused
+ {
+ DrawAntiShadedRect(dc, &rect, m_penDarkGrey, m_penHighlight);
+ DrawAntiShadedRect(dc, &rect, m_penBlack, m_penHighlight);
+ }