Add TCM_SETCURSEL when setting page current.
This commit is contained in:
parent
d075eff2e9
commit
176f5cf62c
|
@ -1742,6 +1742,7 @@ static BOOL PROPSHEET_SetCurSel(HWND hwndDlg,
|
||||||
{
|
{
|
||||||
PropSheetInfo* psInfo = (PropSheetInfo*) GetPropW(hwndDlg, PropSheetInfoStr);
|
PropSheetInfo* psInfo = (PropSheetInfo*) GetPropW(hwndDlg, PropSheetInfoStr);
|
||||||
HWND hwndHelp = GetDlgItem(hwndDlg, IDHELP);
|
HWND hwndHelp = GetDlgItem(hwndDlg, IDHELP);
|
||||||
|
HWND hwndTabControl = GetDlgItem(hwndDlg, IDC_TABCONTROL);
|
||||||
|
|
||||||
TRACE("index %d, skipdir %d, hpage %p\n", index, skipdir, hpage);
|
TRACE("index %d, skipdir %d, hpage %p\n", index, skipdir, hpage);
|
||||||
/* hpage takes precedence over index */
|
/* hpage takes precedence over index */
|
||||||
|
@ -1758,6 +1759,9 @@ static BOOL PROPSHEET_SetCurSel(HWND hwndDlg,
|
||||||
int result;
|
int result;
|
||||||
PSHNOTIFY psn;
|
PSHNOTIFY psn;
|
||||||
|
|
||||||
|
if (hwndTabControl)
|
||||||
|
SendMessageW(hwndTabControl, TCM_SETCURSEL, index, 0);
|
||||||
|
|
||||||
psn.hdr.code = PSN_SETACTIVE;
|
psn.hdr.code = PSN_SETACTIVE;
|
||||||
psn.hdr.hwndFrom = hwndDlg;
|
psn.hdr.hwndFrom = hwndDlg;
|
||||||
psn.hdr.idFrom = 0;
|
psn.hdr.idFrom = 0;
|
||||||
|
|
Loading…
Reference in New Issue