mirror of
https://github.com/reactos/reactos.git
synced 2025-05-06 18:31:26 +00:00
- Pass the parent to PropertySheetW
See issue #3597 for more details. svn path=/trunk/; revision=37361
This commit is contained in:
parent
1331dc5c45
commit
aaeebbb670
3 changed files with 4 additions and 4 deletions
|
@ -391,7 +391,7 @@ GeneralPageProc(HWND hwndDlg,
|
||||||
if (NewLcid == (LCID)CB_ERR)
|
if (NewLcid == (LCID)CB_ERR)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
SetupApplet(NewLcid);
|
SetupApplet(GetParent(hwndDlg), NewLcid);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
@ -75,7 +75,7 @@ ReplaceSubStr(LPCTSTR szSourceStr, LPCTSTR szStrToReplace, LPCTSTR szTempl);
|
||||||
|
|
||||||
LONG
|
LONG
|
||||||
APIENTRY
|
APIENTRY
|
||||||
SetupApplet(LCID lcid);
|
SetupApplet(HWND hwndDlg, LCID lcid);
|
||||||
|
|
||||||
#endif /* __CPL_INTL_H */
|
#endif /* __CPL_INTL_H */
|
||||||
|
|
||||||
|
|
|
@ -190,7 +190,7 @@ InitPropSheetPage(PROPSHEETPAGE *psp, WORD idDlg, DLGPROC DlgProc, PGLOBALDATA p
|
||||||
/* Create applets */
|
/* Create applets */
|
||||||
LONG
|
LONG
|
||||||
APIENTRY
|
APIENTRY
|
||||||
SetupApplet(LCID lcid)
|
SetupApplet(HWND hwndDlg, LCID lcid)
|
||||||
{
|
{
|
||||||
PROPSHEETPAGE PsPage[NUM_SHEETS + 1];
|
PROPSHEETPAGE PsPage[NUM_SHEETS + 1];
|
||||||
PROPSHEETHEADER psh;
|
PROPSHEETHEADER psh;
|
||||||
|
@ -207,7 +207,7 @@ SetupApplet(LCID lcid)
|
||||||
ZeroMemory(&psh, sizeof(PROPSHEETHEADER));
|
ZeroMemory(&psh, sizeof(PROPSHEETHEADER));
|
||||||
psh.dwSize = sizeof(PROPSHEETHEADER);
|
psh.dwSize = sizeof(PROPSHEETHEADER);
|
||||||
psh.dwFlags = PSH_PROPSHEETPAGE | PSH_USECALLBACK | PSH_PROPTITLE;
|
psh.dwFlags = PSH_PROPSHEETPAGE | PSH_USECALLBACK | PSH_PROPTITLE;
|
||||||
psh.hwndParent = NULL;
|
psh.hwndParent = hwndDlg;
|
||||||
psh.hInstance = hApplet;
|
psh.hInstance = hApplet;
|
||||||
psh.hIcon = LoadIcon(hApplet, MAKEINTRESOURCE(IDC_CPLICON));
|
psh.hIcon = LoadIcon(hApplet, MAKEINTRESOURCE(IDC_CPLICON));
|
||||||
psh.pszCaption = Caption;
|
psh.pszCaption = Caption;
|
||||||
|
|
Loading…
Reference in a new issue