[INTL]: Simplify code (addendum to r74582). (#41)

CORE-13242
This commit is contained in:
Serge Gautherie 2017-10-13 22:24:37 +02:00 committed by Hermès BÉLUSCA - MAÏTO
parent 28f30ba854
commit 41b94fd17b

View File

@ -404,17 +404,14 @@ ListViewCustomDraw(
case CDDS_ITEMPREPAINT:
if (((PCPAGE)lplvcd->nmcd.lItemlParam)->Flags & CODEPAGE_NOT_REMOVEABLE)
{
lplvcd->clrText = GetSysColor(COLOR_GRAYTEXT);
lplvcd->clrTextBk = GetSysColor(COLOR_WINDOW);
return CDRF_NEWFONT;
lplvcd->clrText = GetSysColor(COLOR_GRAYTEXT);
}
else
{
lplvcd->clrText = GetSysColor(COLOR_WINDOWTEXT);
lplvcd->clrTextBk = GetSysColor(COLOR_WINDOW);
return CDRF_NEWFONT;
lplvcd->clrText = GetSysColor(COLOR_WINDOWTEXT);
}
break;
lplvcd->clrTextBk = GetSysColor(COLOR_WINDOW);
return CDRF_NEWFONT;
}
return CDRF_DODEFAULT;