Add TCM_SETCURSEL when setting page current.

oldstable
Guy L. Albertelli 2002-06-28 17:31:57 +00:00 committed by Alexandre Julliard
parent d075eff2e9
commit 176f5cf62c
1 changed files with 4 additions and 0 deletions

View File

@ -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;