From 5bec529499ee1d39b9d9eb67f96400f02966e61d Mon Sep 17 00:00:00 2001 From: kichik Date: Mon, 26 Aug 2002 16:09:30 +0000 Subject: [PATCH] InstallColors /windows problems fixed git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@750 212acab6-be3b-0410-9dea-997c60f758d6 --- Source/exehead/Ui.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Source/exehead/Ui.c b/Source/exehead/Ui.c index 682faa15..47eecc27 100644 --- a/Source/exehead/Ui.c +++ b/Source/exehead/Ui.c @@ -1318,9 +1318,13 @@ static BOOL CALLBACK InstProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lPa ListView_InsertColumn(insthwnd, 0, &lvc); #define LVS_EX_LABELTIP 0x00004000 // listview unfolds partly hidden labels if it does not have infotip text ListView_SetExtendedListViewStyleEx(insthwnd, LVS_EX_LABELTIP, LVS_EX_LABELTIP); - ListView_SetBkColor(insthwnd, lb_bg); - ListView_SetTextBkColor(insthwnd, lb_bg); - ListView_SetTextColor(insthwnd, lb_fg); + if (lb_bg >= 0) { + ListView_SetBkColor(insthwnd, lb_bg); + ListView_SetTextBkColor(insthwnd, lb_bg); + } + if (lb_fg >= 0) { + ListView_SetTextColor(insthwnd, lb_fg); + } SetWindowText(insthwndbutton,STR(LANG_BTN_DETAILS)); if (g_inst_cmnheader->show_details) {