summaryrefslogtreecommitdiff
path: root/plugins/WhenWasIt/dlg_handlers.cpp
diff options
context:
space:
mode:
authorVadim Dashevskiy <watcherhd@gmail.com>2012-06-16 14:51:46 +0000
committerVadim Dashevskiy <watcherhd@gmail.com>2012-06-16 14:51:46 +0000
commit8617d7e00546f892c9084f7c382648b23d8bbb63 (patch)
tree2be51254236644b678418c1147f223a30e030bda /plugins/WhenWasIt/dlg_handlers.cpp
parent05c989e58aeffcfb59cebaca6797cb69dd25cb1e (diff)
another portion of "#ifdef Unicode" removal
git-svn-id: http://svn.miranda-ng.org/main/trunk@447 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/WhenWasIt/dlg_handlers.cpp')
-rw-r--r--plugins/WhenWasIt/dlg_handlers.cpp18
1 files changed, 6 insertions, 12 deletions
diff --git a/plugins/WhenWasIt/dlg_handlers.cpp b/plugins/WhenWasIt/dlg_handlers.cpp
index 86b64effcc..e789b29d32 100644
--- a/plugins/WhenWasIt/dlg_handlers.cpp
+++ b/plugins/WhenWasIt/dlg_handlers.cpp
@@ -524,11 +524,9 @@ INT_PTR CALLBACK DlgProcAddBirthday(HWND hWnd, UINT msg, WPARAM wParam, LPARAM l
case DOB_PROTOCOL:
{
DateTime_SetMonthCalColor(hDate, MCSC_TITLEBK, COLOR_PROTOCOL);
-#ifdef _UNICODE
+
_stprintf(buffer, TranslateT("%S protocol"), protocol);
-#else
- _stprintf(buffer, TranslateT("%s protocol"), protocol);
-#endif
+
szCurrentModuleTooltip = buffer;
@@ -652,11 +650,9 @@ TCHAR *GetBirthdayModule(int module, HANDLE hContact, TCHAR *birthdayModule, int
{
char protocol[512];
GetContactProtocol(hContact, protocol, sizeof(protocol));
-#ifdef _UNICODE
+
_sntprintf(birthdayModule, size, TranslateT("%S protocol"), protocol);
-#else
- _sntprintf(birthdayModule, size, TranslateT("%s protocol"), protocol);
-#endif
+
break;
}
@@ -793,11 +789,9 @@ int UpdateBirthdayEntry(HWND hList, HANDLE hContact, int entry, int bShowAll, in
item.lParam = (LPARAM) hContact;
GetContactProtocol(hContact, protocol, sizeof(protocol));
-#ifdef _UNICODE
+
MultiByteToWideChar(CP_ACP, MB_USEGLYPHCHARS, protocol, -1, buffer, maxSize);
-#else
- strcpy(buffer, protocol);
-#endif
+
item.pszText = buffer;
if (bAdd)