- Pass the parent to PropertySheetW

See issue #3597 for more details.

svn path=/trunk/; revision=37361
This commit is contained in:
Johannes Anderwald 2008-11-14 19:08:29 +00:00
parent 1331dc5c45
commit aaeebbb670
3 changed files with 4 additions and 4 deletions

View file

@ -391,7 +391,7 @@ GeneralPageProc(HWND hwndDlg,
if (NewLcid == (LCID)CB_ERR)
break;
SetupApplet(NewLcid);
SetupApplet(GetParent(hwndDlg), NewLcid);
}
break;
}

View file

@ -75,7 +75,7 @@ ReplaceSubStr(LPCTSTR szSourceStr, LPCTSTR szStrToReplace, LPCTSTR szTempl);
LONG
APIENTRY
SetupApplet(LCID lcid);
SetupApplet(HWND hwndDlg, LCID lcid);
#endif /* __CPL_INTL_H */

View file

@ -190,7 +190,7 @@ InitPropSheetPage(PROPSHEETPAGE *psp, WORD idDlg, DLGPROC DlgProc, PGLOBALDATA p
/* Create applets */
LONG
APIENTRY
SetupApplet(LCID lcid)
SetupApplet(HWND hwndDlg, LCID lcid)
{
PROPSHEETPAGE PsPage[NUM_SHEETS + 1];
PROPSHEETHEADER psh;
@ -207,7 +207,7 @@ SetupApplet(LCID lcid)
ZeroMemory(&psh, sizeof(PROPSHEETHEADER));
psh.dwSize = sizeof(PROPSHEETHEADER);
psh.dwFlags = PSH_PROPSHEETPAGE | PSH_USECALLBACK | PSH_PROPTITLE;
psh.hwndParent = NULL;
psh.hwndParent = hwndDlg;
psh.hInstance = hApplet;
psh.hIcon = LoadIcon(hApplet, MAKEINTRESOURCE(IDC_CPLICON));
psh.pszCaption = Caption;