diff options
author | Tobias Weimer <wishmaster51@googlemail.com> | 2013-11-08 20:21:46 +0000 |
---|---|---|
committer | Tobias Weimer <wishmaster51@googlemail.com> | 2013-11-08 20:21:46 +0000 |
commit | 04fb44b780f18e57abd1afb0a38b845ace114e6b (patch) | |
tree | 5328cc5b4a2a2a3295edb5922077c79f94356641 /protocols/IcqOscarJ/src/UI | |
parent | 0829927dddd3277bf0159fac6750d00a84a805c6 (diff) |
removed unneeded UTF conversions
git-svn-id: http://svn.miranda-ng.org/main/trunk@6828 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/IcqOscarJ/src/UI')
-rw-r--r-- | protocols/IcqOscarJ/src/UI/loginpassword.cpp | 6 | ||||
-rw-r--r-- | protocols/IcqOscarJ/src/UI/userinfotab.cpp | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/protocols/IcqOscarJ/src/UI/loginpassword.cpp b/protocols/IcqOscarJ/src/UI/loginpassword.cpp index bf6706dc75..9636e9a41b 100644 --- a/protocols/IcqOscarJ/src/UI/loginpassword.cpp +++ b/protocols/IcqOscarJ/src/UI/loginpassword.cpp @@ -46,9 +46,9 @@ INT_PTR CALLBACK LoginPasswdDlgProc(HWND hwndDlg, UINT msg, WPARAM wParam, LPARA {
DWORD dwUin = ppro->getContactUin(NULL);
- char pszUIN[MAX_PATH], str[MAX_PATH];
- mir_snprintf(pszUIN, 128, ICQTranslateUtfStatic(LPGEN("Enter a password for UIN %u:"), str, MAX_PATH), dwUin);
- SetDlgItemTextUtf(hwndDlg, IDC_INSTRUCTION, pszUIN);
+ TCHAR pszUIN[MAX_PATH];
+ mir_sntprintf(pszUIN, 128, TranslateT("Enter a password for UIN %u:"), dwUin);
+ SetDlgItemText(hwndDlg, IDC_INSTRUCTION, pszUIN);
SendDlgItemMessage(hwndDlg, IDC_LOGINPW, EM_LIMITTEXT, PASSWORDMAXLEN - 1, 0);
diff --git a/protocols/IcqOscarJ/src/UI/userinfotab.cpp b/protocols/IcqOscarJ/src/UI/userinfotab.cpp index d913bc50f4..f8bec5308b 100644 --- a/protocols/IcqOscarJ/src/UI/userinfotab.cpp +++ b/protocols/IcqOscarJ/src/UI/userinfotab.cpp @@ -172,7 +172,7 @@ static void SetValue(CIcqProto* ppro, HWND hwndDlg, int idCtrl, HANDLE hContact, bAlloc = 1;
}
if (idCtrl == IDC_UIN)
- SetDlgItemTextUtf(hwndDlg, IDC_UINSTATIC, ICQTranslateUtfStatic(LPGEN("ScreenName:"), str, MAX_PATH));
+ SetDlgItemText(hwndDlg, IDC_UINSTATIC, TranslateT("ScreenName:"));
break;
default:
@@ -184,7 +184,7 @@ static void SetValue(CIcqProto* ppro, HWND hwndDlg, int idCtrl, HANDLE hContact, EnableDlgItem(hwndDlg, idCtrl, !unspecified);
if (unspecified)
- SetDlgItemTextUtf(hwndDlg, idCtrl, ICQTranslateUtfStatic(LPGEN("<not specified>"), str, MAX_PATH));
+ SetDlgItemText(hwndDlg, idCtrl, TranslateT("<not specified>"));
else if (bUtf)
SetDlgItemTextUtf(hwndDlg, idCtrl, pstr);
else
@@ -257,7 +257,7 @@ static INT_PTR CALLBACK IcqDlgProc(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM SetValue(ppro, hwndDlg, IDC_PORT, hContact, (char*)DBVT_WORD, (char*)ppro->wListenPort, SVS_ZEROISUNSPEC);
SetValue(ppro, hwndDlg, IDC_VERSION, hContact, (char*)DBVT_WORD, (char*)ICQ_VERSION, SVS_ICQVERSION);
SetValue(ppro, hwndDlg, IDC_MIRVER, hContact, (char*)DBVT_ASCIIZ, str, SVS_ZEROISUNSPEC);
- SetDlgItemTextUtf(hwndDlg, IDC_SUPTIME, ICQTranslateUtfStatic(LPGEN("Member since:"), str, MAX_PATH));
+ SetDlgItemText(hwndDlg, IDC_SUPTIME, TranslateT("Member since:"));
SetValue(ppro, hwndDlg, IDC_SYSTEMUPTIME, hContact, szProto, "MemberTS", SVS_TIMESTAMP);
SetValue(ppro, hwndDlg, IDC_STATUS, hContact, (char*)DBVT_WORD, (char*)ppro->m_iStatus, SVS_STATUSID);
}
|