diff options
Diffstat (limited to 'plugins/MyDetails/options.cpp')
-rw-r--r-- | plugins/MyDetails/options.cpp | 23 |
1 files changed, 10 insertions, 13 deletions
diff --git a/plugins/MyDetails/options.cpp b/plugins/MyDetails/options.cpp index 5865010683..05d38aa6cc 100644 --- a/plugins/MyDetails/options.cpp +++ b/plugins/MyDetails/options.cpp @@ -83,19 +83,16 @@ void LoadOptions() int InitOptionsCallback(WPARAM wParam,LPARAM lParam)
{
- OPTIONSDIALOGPAGE odp;
-
- ZeroMemory(&odp,sizeof(odp));
- odp.cbSize=sizeof(odp);
- odp.position=-200000000;
- odp.hInstance=hInst;
- odp.pfnDlgProc=DlgProcOpts;
- odp.pszTemplate=MAKEINTRESOURCE(IDD_OPTS);
- odp.pszGroup=Translate("Customize");
- odp.pszTitle=Translate("My Details");
- odp.flags=ODPF_BOLDGROUPS;
- CallService(MS_OPT_ADDPAGE,wParam,(LPARAM)&odp);
-
+ OPTIONSDIALOGPAGE odp = { 0 };
+ odp.cbSize = sizeof(odp);
+ odp.position = -200000000;
+ odp.hInstance = hInst;
+ odp.pfnDlgProc = DlgProcOpts;
+ odp.pszTemplate = MAKEINTRESOURCE(IDD_OPTS);
+ odp.pszGroup = LPGEN("Customize");
+ odp.pszTitle = LPGEN("My Details");
+ odp.flags = ODPF_BOLDGROUPS;
+ Options_AddPage(wParam, &odp);
return 0;
}
|