diff options
author | George Hazan <george.hazan@gmail.com> | 2012-06-19 14:52:53 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-06-19 14:52:53 +0000 |
commit | 54dec7a74c313ee61437386bd667f9a7653351fd (patch) | |
tree | 81aaf9bf469838735392a81ed3edfc3b3bd7481f /plugins/AVS | |
parent | 03dd87df0b288fd0f0f512fb0bbff29e8c00f366 (diff) |
fixes for the options page translation
git-svn-id: http://svn.miranda-ng.org/main/trunk@479 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/AVS')
-rw-r--r-- | plugins/AVS/main.cpp | 23 |
1 files changed, 9 insertions, 14 deletions
diff --git a/plugins/AVS/main.cpp b/plugins/AVS/main.cpp index 5137944b00..137ecf6b8d 100644 --- a/plugins/AVS/main.cpp +++ b/plugins/AVS/main.cpp @@ -2167,27 +2167,24 @@ static int ContactDeleted(WPARAM wParam, LPARAM lParam) static int OptInit(WPARAM wParam, LPARAM lParam)
{
- OPTIONSDIALOGPAGE odp;
-
- ZeroMemory(&odp, sizeof(odp));
+ OPTIONSDIALOGPAGE odp = { 0 };
odp.cbSize = sizeof(odp);
- odp.position = 0;
odp.hInstance = g_hInst;
- odp.flags = ODPF_BOLDGROUPS | ODPF_EXPERTONLY | ODPF_TCHAR;
- odp.ptszGroup = LPGENT("Customize");
- odp.ptszTitle = LPGENT("Avatars");
+ odp.flags = ODPF_BOLDGROUPS | ODPF_EXPERTONLY;
+ odp.pszGroup = LPGEN("Customize");
+ odp.pszTitle = LPGEN("Avatars");
- odp.ptszTab = LPGENT("Protocols");
+ odp.pszTab = LPGEN("Protocols");
odp.pszTemplate = MAKEINTRESOURCEA(IDD_OPTIONS_PICTS);
odp.pfnDlgProc = DlgProcOptionsProtos;
Options_AddPage(wParam, &odp);
- odp.ptszTab = LPGENT("Contact Avatars");
+ odp.pszTab = LPGEN("Contact Avatars");
odp.pszTemplate = MAKEINTRESOURCEA(IDD_OPTIONS_AVATARS);
odp.pfnDlgProc = DlgProcOptionsAvatars;
Options_AddPage(wParam, &odp);
- odp.ptszTab = LPGENT("Own Avatars");
+ odp.pszTab = LPGEN("Own Avatars");
odp.pszTemplate = MAKEINTRESOURCEA(IDD_OPTIONS_OWN);
odp.pfnDlgProc = DlgProcOptionsOwn;
Options_AddPage(wParam, &odp);
@@ -2377,12 +2374,11 @@ static int OnDetailsInit(WPARAM wParam, LPARAM lParam) // User dialog
OPTIONSDIALOGPAGE odp = {0};
odp.cbSize = sizeof(odp);
- odp.flags = ODPF_TCHAR;
odp.hIcon = g_hIcon;
odp.hInstance = g_hInst;
odp.pfnDlgProc = DlgProcAvatarProtoInfo;
odp.pszTemplate = MAKEINTRESOURCEA(IDD_PROTO_AVATARS);
- odp.ptszTitle = LPGENT("Avatar");
+ odp.pszTitle = LPGEN("Avatar");
UserInfo_AddPage(wParam, &odp);
}
else
@@ -2393,13 +2389,12 @@ static int OnDetailsInit(WPARAM wParam, LPARAM lParam) // Contact dialog
OPTIONSDIALOGPAGE odp = {0};
odp.cbSize = sizeof(odp);
- odp.flags = ODPF_TCHAR;
odp.hIcon = g_hIcon;
odp.hInstance = g_hInst;
odp.pfnDlgProc = DlgProcAvatarUserInfo;
odp.position = -2000000000;
odp.pszTemplate = MAKEINTRESOURCEA(IDD_USER_AVATAR);
- odp.ptszTitle = LPGENT("Avatar");
+ odp.pszTitle = LPGEN("Avatar");
UserInfo_AddPage(wParam, &odp);
}
}
|