From 05c989e58aeffcfb59cebaca6797cb69dd25cb1e Mon Sep 17 00:00:00 2001 From: Vadim Dashevskiy Date: Sat, 16 Jun 2012 14:33:30 +0000 Subject: another portion of "#ifdef Unicode" removal git-svn-id: http://svn.miranda-ng.org/main/trunk@446 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/UserInfoEx/ctrl_contact.cpp | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) (limited to 'plugins/UserInfoEx/ctrl_contact.cpp') diff --git a/plugins/UserInfoEx/ctrl_contact.cpp b/plugins/UserInfoEx/ctrl_contact.cpp index 5c54693736..8b13ad9256 100644 --- a/plugins/UserInfoEx/ctrl_contact.cpp +++ b/plugins/UserInfoEx/ctrl_contact.cpp @@ -319,22 +319,10 @@ INT_PTR CALLBACK DlgProc_Phone(HWND hDlg, UINT msg, WPARAM wParam, LPARAM lParam EDITBALLOONTIP btt; btt.cbStruct = SIZEOF(btt); -#ifdef _UNICODE + btt.pszTitle = TranslateW(L"Syntax Error"); btt.pszText = TranslateW(L"The phone number should start with a + and consist of\nnumbers, spaces, brackets and hyphens only."); -#else - WCHAR wszTitle[MAX_PATH]; - WCHAR wszText[MAX_PATH]; - LPSTR pszTitle = Translate("Syntax Error"); - LPSTR pszText = Translate("The phone number should start with a + and consist of\nnumbers, spaces, brackets and hyphens only."); - INT cbTitle = mir_strlen(pszTitle) + 1; - INT cbText = mir_strlen(pszText) + 1; - - MultiByteToWideChar(myGlobals.CodePage, 0, pszTitle, -1, wszTitle, cbTitle); - MultiByteToWideChar(myGlobals.CodePage, 0, pszText, -1, wszText, cbText); - btt.pszTitle = wszTitle; - btt.pszText = wszText; -#endif + SendDlgItemMessage(hDlg, EDIT_PHONE, EM_SHOWBALLOONTIP, NULL, (LPARAM)&btt); SetDlgItemText(hDlg, EDIT_PHONE, cbi->pszVal); SendDlgItemMessage(hDlg, EDIT_PHONE, EM_SETSEL, errorPos, errorPos); -- cgit v1.2.3