diff options
author | George Hazan <george.hazan@gmail.com> | 2012-07-18 21:04:10 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-07-18 21:04:10 +0000 |
commit | 02413392a2b40fcebe5f178c776402a9ce148604 (patch) | |
tree | 300d3327a04f932138fa820e9e10755bc58b7235 /plugins/MyDetails/options.cpp | |
parent | c9700ede2ef5444c6f754322e7c255441d6d6721 (diff) |
compilation fix for MyDetails
git-svn-id: http://svn.miranda-ng.org/main/trunk@1027 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
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;
}
|