fixed branding text background color not updating when the system's color change

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3329 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
kichik 2003-12-29 14:27:33 +00:00
parent 9241c66c5e
commit 8a85e1c0dd
9 changed files with 62 additions and 61 deletions

View file

@ -739,16 +739,6 @@ static int NSISCALL ExecuteEntry(entry *entry_)
case EW_SETCTLCOLORS:
{
ctlcolors *c = (ctlcolors *)(g_blocks[NB_CTLCOLORS].offset + parm1);
if (c->flags & CC_TEXT_SYS)
c->text = GetSysColor(c->text);
if (c->flags & CC_BK_SYS)
c->bk.lbColor = GetSysColor(c->bk.lbColor);
if (c->flags & CC_BKB)
c->bkb = CreateBrushIndirect(&c->bk);
c->flags &= ~(CC_BK_SYS|CC_TEXT_SYS|CC_BKB);
SetWindowLong((HWND) GetIntFromParm(0), GWL_USERDATA, (long) c);
}
break;