- Treeview uses COLOR_WINDOW color instead of clrBk to fill background.

- Treeview: colors returned by TVM_GET**COLOR are mixed up.
This commit is contained in:
Ulrich Czekalla 1999-10-31 01:52:42 +00:00 committed by Alexandre Julliard
parent c719e35b02
commit dfd13e2fb6
1 changed files with 4 additions and 6 deletions

View File

@ -495,7 +495,7 @@ TREEVIEW_GetBkColor (HWND hwnd)
TREEVIEW_INFO *infoPtr = TREEVIEW_GetInfoPtr(hwnd);
TRACE("\n");
return (LRESULT) infoPtr->clrText;
return (LRESULT) infoPtr->clrBk;
}
static LRESULT
@ -515,7 +515,7 @@ TREEVIEW_GetTextColor (HWND hwnd)
TREEVIEW_INFO *infoPtr = TREEVIEW_GetInfoPtr(hwnd);
TRACE("\n");
return (LRESULT) infoPtr->clrBk;
return (LRESULT) infoPtr->clrText;
}
@ -986,13 +986,11 @@ TREEVIEW_Refresh (HWND hwnd)
viewleft=infoPtr->cx;
viewright=infoPtr->cx + rect.right-rect.left;
/* draw background */
hbrBk = GetSysColorBrush (COLOR_WINDOW);
hbrBk = CreateSolidBrush (infoPtr->clrBk);
FillRect(hdc, &rect, hbrBk);
DeleteObject(hbrBk);
iItem=(INT)infoPtr->TopRootItem;
infoPtr->firstVisible=0;