diff options
Diffstat (limited to 'src/modules/clist/clcutils.cpp')
-rw-r--r-- | src/modules/clist/clcutils.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/modules/clist/clcutils.cpp b/src/modules/clist/clcutils.cpp index 87222c1ce1..50c2e45b0b 100644 --- a/src/modules/clist/clcutils.cpp +++ b/src/modules/clist/clcutils.cpp @@ -737,6 +737,22 @@ void fnLoadClcOptions(HWND hwnd, struct ClcData *dat, BOOL bFirst) dat->quickSearchColour = db_get_dw(NULL, "CLC", "QuickSearchColour", CLCDEFAULT_QUICKSEARCHCOLOUR);
dat->useWindowsColours = db_get_b(NULL, "CLC", "UseWinColours", CLCDEFAULT_USEWINDOWSCOLOURS);
+ if (cli.hwndContactTree != NULL && hwnd != cli.hwndContactTree) {
+ dat->bkChanged = true; // block custom background
+ dat->bkColour = GetSysColor(COLOR_WINDOW);
+ if (dat->hBmpBackground) {
+ DeleteObject(dat->hBmpBackground);
+ dat->hBmpBackground = NULL;
+ }
+
+ dat->greyoutFlags = 0;
+ dat->leftMargin = 4;
+ dat->groupIndent = 10;
+
+ for (int i=0; i <= FONTID_MAX; i++)
+ dat->fontInfo[i].colour = GetSysColor(COLOR_WINDOWTEXT);
+ }
+
if (!dat->bkChanged) {
dat->bkColour = db_get_dw(NULL, "CLC", "BkColour", CLCDEFAULT_BKCOLOUR);
if (dat->hBmpBackground) {
|