ChangeSet ID: 21166 CVSROOT: /opt/cvs-commit Module name: wine Changes by: julliard@winehq.org 2005/11/08 07:11:48
Modified files: dlls/comctl32 : treeview.c
Log message: Alex VillacĂs Lasso a_villacis@palosanto.com Do not issue a GetUpdateRect() to query an update region for WM_PAINT(wParam=HDC) case. Instead, use GetClientRect() for a bounding rect.
Patch: http://cvs.winehq.org/patch.py?id=21166
Old revision New revision Changes Path 1.176 1.177 +2 -12 wine/dlls/comctl32/treeview.c
Index: wine/dlls/comctl32/treeview.c diff -u -p wine/dlls/comctl32/treeview.c:1.176 wine/dlls/comctl32/treeview.c:1.177 --- wine/dlls/comctl32/treeview.c:1.176 8 Nov 2005 13:11:48 -0000 +++ wine/dlls/comctl32/treeview.c 8 Nov 2005 13:11:48 -0000 @@ -2849,18 +2849,8 @@ TREEVIEW_Paint(TREEVIEW_INFO *infoPtr, W if (wParam) { hdc = (HDC)wParam; - if (!GetUpdateRect(infoPtr->hwnd, &rc, TRUE)) - { - HBITMAP hbitmap; - BITMAP bitmap; - hbitmap = GetCurrentObject(hdc, OBJ_BITMAP); - if (!hbitmap) return 0; - GetObjectW(hbitmap, sizeof(BITMAP), &bitmap); - rc.left = 0; rc.top = 0; - rc.right = bitmap.bmWidth; - rc.bottom = bitmap.bmHeight; - TREEVIEW_EraseBackground(infoPtr, (HDC)wParam); - } + GetClientRect(infoPtr->hwnd, &rc); + TREEVIEW_EraseBackground(infoPtr, hdc); } else {