Clearing background problem with custom background color (.onStaticCtlBkColor)
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@715 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
d9b296019a
commit
4afe731f89
1 changed files with 3 additions and 2 deletions
|
@ -134,8 +134,9 @@ static BOOL NSISCALL _HandleStaticBkColor(UINT uMsg, WPARAM wParam, LPARAM lPara
|
||||||
myitoa(g_usrvars[0],lParam);
|
myitoa(g_usrvars[0],lParam);
|
||||||
ExecuteCodeSegment(g_inst_entry,g_inst_cmnheader->code_onStaticCtlBkColor,NULL);
|
ExecuteCodeSegment(g_inst_entry,g_inst_cmnheader->code_onStaticCtlBkColor,NULL);
|
||||||
if (myatoi(g_usrvars[0]) != -1) {
|
if (myatoi(g_usrvars[0]) != -1) {
|
||||||
SetBkColor((HDC)wParam, myatoi(g_usrvars[0]));
|
LOGBRUSH b={BS_SOLID,myatoi(g_usrvars[0]),0};
|
||||||
ret=(BOOL)GetStockObject(HOLLOW_BRUSH);
|
SetBkColor((HDC)wParam, b.lbColor);
|
||||||
|
ret=(BOOL)CreateBrushIndirect(&b);
|
||||||
}
|
}
|
||||||
mystrcpy(g_usrvars[0],g_tmp);
|
mystrcpy(g_usrvars[0],g_tmp);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue