git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16971
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
- wxColour colText, colBack;
- wxFont font = attr->GetFont();
- hFont = (HFONT)font.GetResourceHandle();
+ hFont = GetHfontOf(attr->GetFont());
if ( attr->HasTextColour() )
{
colText = attr->GetTextColour();
if ( attr->HasTextColour() )
{
colText = attr->GetTextColour();
// selection colours should override ours
if ( nmcd.uItemState & CDIS_SELECTED )
{
// selection colours should override ours
if ( nmcd.uItemState & CDIS_SELECTED )
{
- DWORD clrBk = ::GetSysColor(COLOR_HIGHLIGHT);
- lptvcd->clrTextBk = clrBk;
-
- // try to make the text visible
- lptvcd->clrText = wxColourToRGB(colText);
- lptvcd->clrText |= ~clrBk;
- lptvcd->clrText &= 0x00ffffff;
+ lptvcd->clrTextBk =
+ ::GetSysColor(COLOR_HIGHLIGHT);
+ lptvcd->clrText =
+ ::GetSysColor(COLOR_HIGHLIGHTTEXT);
if ( attr->HasBackgroundColour() )
{
colBack = attr->GetBackgroundColour();
if ( attr->HasBackgroundColour() )
{
colBack = attr->GetBackgroundColour();