- 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:
parent
c719e35b02
commit
dfd13e2fb6
@ -495,7 +495,7 @@ TREEVIEW_GetBkColor (HWND hwnd)
|
|||||||
TREEVIEW_INFO *infoPtr = TREEVIEW_GetInfoPtr(hwnd);
|
TREEVIEW_INFO *infoPtr = TREEVIEW_GetInfoPtr(hwnd);
|
||||||
|
|
||||||
TRACE("\n");
|
TRACE("\n");
|
||||||
return (LRESULT) infoPtr->clrText;
|
return (LRESULT) infoPtr->clrBk;
|
||||||
}
|
}
|
||||||
|
|
||||||
static LRESULT
|
static LRESULT
|
||||||
@ -515,7 +515,7 @@ TREEVIEW_GetTextColor (HWND hwnd)
|
|||||||
TREEVIEW_INFO *infoPtr = TREEVIEW_GetInfoPtr(hwnd);
|
TREEVIEW_INFO *infoPtr = TREEVIEW_GetInfoPtr(hwnd);
|
||||||
|
|
||||||
TRACE("\n");
|
TRACE("\n");
|
||||||
return (LRESULT) infoPtr->clrBk;
|
return (LRESULT) infoPtr->clrText;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -986,13 +986,11 @@ TREEVIEW_Refresh (HWND hwnd)
|
|||||||
viewleft=infoPtr->cx;
|
viewleft=infoPtr->cx;
|
||||||
viewright=infoPtr->cx + rect.right-rect.left;
|
viewright=infoPtr->cx + rect.right-rect.left;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* draw background */
|
/* draw background */
|
||||||
|
|
||||||
hbrBk = GetSysColorBrush (COLOR_WINDOW);
|
hbrBk = CreateSolidBrush (infoPtr->clrBk);
|
||||||
FillRect(hdc, &rect, hbrBk);
|
FillRect(hdc, &rect, hbrBk);
|
||||||
|
DeleteObject(hbrBk);
|
||||||
|
|
||||||
iItem=(INT)infoPtr->TopRootItem;
|
iItem=(INT)infoPtr->TopRootItem;
|
||||||
infoPtr->firstVisible=0;
|
infoPtr->firstVisible=0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user