comctl32: Properly disable redraw on tab control.

This commit is contained in:
Nikolay Sivov 2012-05-17 09:37:03 +04:00 committed by Alexandre Julliard
parent 3525e1dc46
commit ace41e9264

View File

@ -1173,7 +1173,7 @@ static BOOL PROPSHEET_CreateTabControl(HWND hwndParent,
SendMessageW(hwndTabCtrl, TCM_SETIMAGELIST, 0, (LPARAM)psInfo->hImageList); 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++) for (i = 0; i < nTabs; i++)
{ {
if ( psInfo->proppage[i].hasIcon ) if ( psInfo->proppage[i].hasIcon )
@ -1189,7 +1189,7 @@ static BOOL PROPSHEET_CreateTabControl(HWND hwndParent,
item.pszText = (LPWSTR) psInfo->proppage[i].pszText; item.pszText = (LPWSTR) psInfo->proppage[i].pszText;
SendMessageW(hwndTabCtrl, TCM_INSERTITEMW, i, (LPARAM)&item); SendMessageW(hwndTabCtrl, TCM_INSERTITEMW, i, (LPARAM)&item);
} }
SendMessageW(GetDlgItem(hwndTabCtrl, IDC_TABCONTROL), WM_SETREDRAW, 1, 0); SendMessageW(hwndTabCtrl, WM_SETREDRAW, 1, 0);
return TRUE; return TRUE;
} }