Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(186)

Unified Diff: chrome/views/tree_view.cc

Issue 8819: Makes tree double duffered so that it doesn't flicker during resize.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 12 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/views/tree_view.cc
===================================================================
--- chrome/views/tree_view.cc (revision 4013)
+++ chrome/views/tree_view.cc (working copy)
@@ -599,6 +599,20 @@
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;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698