comctl32: Properly disable redraw on tab control
Nikolay Sivov
nsivov at codeweavers.com
Thu May 17 01:02:36 CDT 2012
Spotted while testing for bug http://bugs.winehq.org/show_bug.cgi?id=30569.
GetDlgItem(hwndTabCtrl, IDC_TABCONTROL) makes no sense here.
-------------- next part --------------
>From 5b3e64b038d06cf3f03156292ff7d06a3c316386 Mon Sep 17 00:00:00 2001
From: Nikolay Sivov <nsivov at codeweavers.com>
Date: Thu, 17 May 2012 09:37:03 +0400
Subject: [PATCH 1/1] 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;
}
--
1.5.6.5
More information about the wine-patches
mailing list