Commit 176f5cf6 authored by Guy L. Albertelli's avatar Guy L. Albertelli Committed by Alexandre Julliard

Add TCM_SETCURSEL when setting page current.

parent d075eff2
......@@ -1742,6 +1742,7 @@ static BOOL PROPSHEET_SetCurSel(HWND hwndDlg,
{
PropSheetInfo* psInfo = (PropSheetInfo*) GetPropW(hwndDlg, PropSheetInfoStr);
HWND hwndHelp = GetDlgItem(hwndDlg, IDHELP);
HWND hwndTabControl = GetDlgItem(hwndDlg, IDC_TABCONTROL);
TRACE("index %d, skipdir %d, hpage %p\n", index, skipdir, hpage);
/* hpage takes precedence over index */
......@@ -1758,6 +1759,9 @@ static BOOL PROPSHEET_SetCurSel(HWND hwndDlg,
int result;
PSHNOTIFY psn;
if (hwndTabControl)
SendMessageW(hwndTabControl, TCM_SETCURSEL, index, 0);
psn.hdr.code = PSN_SETACTIVE;
psn.hdr.hwndFrom = hwndDlg;
psn.hdr.idFrom = 0;
......
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