comparison dwt/widgets/Tree.d @ 219:9c2ceaa48046

Fix drawing bug for double buffered Tree.
author Frank Benoit <benoit@tionex.de>
date Sun, 18 May 2008 19:57:42 +0200
parents c749c13479ef
children e2affbeb686d
comparison
equal deleted inserted replaced
218:c749c13479ef 219:9c2ceaa48046
6725 auto hDC = OS.CreateCompatibleDC (paintDC); 6725 auto hDC = OS.CreateCompatibleDC (paintDC);
6726 POINT lpPoint1, lpPoint2; 6726 POINT lpPoint1, lpPoint2;
6727 OS.SetWindowOrgEx (hDC, ps.rcPaint.left, ps.rcPaint.top, &lpPoint1); 6727 OS.SetWindowOrgEx (hDC, ps.rcPaint.left, ps.rcPaint.top, &lpPoint1);
6728 OS.SetBrushOrgEx (hDC, ps.rcPaint.left, ps.rcPaint.top, &lpPoint2); 6728 OS.SetBrushOrgEx (hDC, ps.rcPaint.left, ps.rcPaint.top, &lpPoint2);
6729 auto hBitmap = OS.CreateCompatibleBitmap (paintDC, width, height); 6729 auto hBitmap = OS.CreateCompatibleBitmap (paintDC, width, height);
6730 auto hOldBitmap = OS.SelectObject (hDC, &hBitmap); 6730 auto hOldBitmap = OS.SelectObject (hDC, hBitmap);
6731 RECT rect; 6731 RECT rect;
6732 OS.SetRect (&rect, ps.rcPaint.left, ps.rcPaint.top, ps.rcPaint.right, ps.rcPaint.bottom); 6732 OS.SetRect (&rect, ps.rcPaint.left, ps.rcPaint.top, ps.rcPaint.right, ps.rcPaint.bottom);
6733 drawBackground (hDC, &rect); 6733 drawBackground (hDC, &rect);
6734 callWindowProc (handle, OS.WM_PAINT, cast(int) hDC, 0); 6734 callWindowProc (handle, OS.WM_PAINT, cast(int) hDC, 0);
6735 OS.SetWindowOrgEx (hDC, lpPoint1.x, lpPoint1.y, null); 6735 OS.SetWindowOrgEx (hDC, lpPoint1.x, lpPoint1.y, null);