Nikolay Sivov : comctl32: Properly disable redraw on tab control.

Alexandre Julliard julliard at winehq.org
Thu May 17 13:45:59 CDT 2012


Module: wine
Branch: master
Commit: ace41e9264ffd4f115f69e805b074585f0431754
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=ace41e9264ffd4f115f69e805b074585f0431754

Author: Nikolay Sivov <nsivov at codeweavers.com>
Date:   Thu May 17 09:37:03 2012 +0400

comctl32: Properly disable redraw on tab control.

---

 dlls/comctl32/propsheet.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/comctl32/propsheet.c b/dlls/comctl32/propsheet.c
index 6f620c6..3c0f3d3 100644
--- a/dlls/comctl32/propsheet.c
+++ b/dlls/comctl32/propsheet.c
@@ -1173,7 +1173,7 @@ static BOOL PROPSHEET_CreateTabControl(HWND hwndParent,
     SendMessageW(hwndTabCtrl, TCM_SETIMAGELIST, 0, (LPARAM)psInfo->hImageList);
   }
 
-  SendMessageW(GetDlgItem(hwndTabCtrl, IDC_TABCONTROL), WM_SETREDRAW, 0, 0);
+  SendMessageW(hwndTabCtrl, WM_SETREDRAW, 0, 0);
   for (i = 0; i < nTabs; i++)
   {
     if ( psInfo->proppage[i].hasIcon )
@@ -1189,7 +1189,7 @@ static BOOL PROPSHEET_CreateTabControl(HWND hwndParent,
     item.pszText = (LPWSTR) psInfo->proppage[i].pszText;
     SendMessageW(hwndTabCtrl, TCM_INSERTITEMW, i, (LPARAM)&item);
   }
-  SendMessageW(GetDlgItem(hwndTabCtrl, IDC_TABCONTROL), WM_SETREDRAW, 1, 0);
+  SendMessageW(hwndTabCtrl, WM_SETREDRAW, 1, 0);
 
   return TRUE;
 }




More information about the wine-cvs mailing list