summaryrefslogtreecommitdiffstats
path: root/chrome/views/tree_view.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/views/tree_view.cc')
-rw-r--r--chrome/views/tree_view.cc14
1 files changed, 14 insertions, 0 deletions
diff --git a/chrome/views/tree_view.cc b/chrome/views/tree_view.cc
index 2719970..a092b9a 100644
--- a/chrome/views/tree_view.cc
+++ b/chrome/views/tree_view.cc
@@ -599,6 +599,20 @@ LRESULT CALLBACK TreeView::TreeWndProc(HWND window,
DCHECK(wrapper);
TreeView* tree = wrapper->tree_view;
switch (message) {
+ case WM_ERASEBKGND:
+ return 1;
+
+ case WM_PAINT: {
+ ChromeCanvasPaint canvas(window);
+ if (canvas.isEmpty())
+ return 0;
+
+ SendMessage(window, WM_PRINTCLIENT,
+ reinterpret_cast<WPARAM>(canvas.beginPlatformPaint()), 0);
+ canvas.endPlatformPaint();
+ return 0;
+ }
+
case WM_RBUTTONDOWN:
if (tree->select_on_right_mouse_down_) {
TVHITTESTINFO hit_info;