Commit 90c25514 authored by Mike McCormack's avatar Mike McCormack Committed by Alexandre Julliard

Adjust the tab contents to fix the propsheet between PSM_KILLACTIVE

and PSM_SETACTIVE.
parent 1bd7986c
......@@ -2040,6 +2040,8 @@ static BOOL PROPSHEET_CanSetCurSel(HWND hwndDlg)
HWND hwndPage;
PSHNOTIFY psn;
BOOL res = FALSE;
HWND hwndTabControl;
RECT rect;
TRACE("active_page %d\n", psInfo->active_page);
if (!psInfo)
......@@ -2065,6 +2067,16 @@ static BOOL PROPSHEET_CanSetCurSel(HWND hwndDlg)
res = !SendMessageA(hwndPage, WM_NOTIFY, 0, (LPARAM) &psn);
/*
* Re-adjust the tab control's contents
*/
hwndTabControl = GetDlgItem(hwndDlg, IDC_TABCONTROL);
memset( &rect, 0, sizeof rect );
GetClientRect( hwndTabControl, &rect );
SendMessageW( hwndTabControl, TCM_ADJUSTRECT, 0, (LPARAM) &rect );
SetWindowPos( hwndPage, NULL, rect.left, rect.top,
rect.right - rect.left, rect.bottom - rect.top, 0 );
end:
TRACE("<-- %d\n", res);
return res;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment