summaryrefslogtreecommitdiff
path: root/plugins/Alarms/alarm_win.cpp
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2012-06-23 19:41:22 +0000
committerKirill Volinsky <mataes2007@gmail.com>2012-06-23 19:41:22 +0000
commit72181fe66c73ca0bdc764d129b24305249fabb48 (patch)
tree43379eb9b01a7de8e95c0ad873672371f403c12f /plugins/Alarms/alarm_win.cpp
parent737f526a855d0fc814c6e5fa0fb3f908c8ad83bb (diff)
Alarms Unicode. Compiled but not tested
git-svn-id: http://svn.miranda-ng.org/main/trunk@585 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Alarms/alarm_win.cpp')
-rw-r--r--plugins/Alarms/alarm_win.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/Alarms/alarm_win.cpp b/plugins/Alarms/alarm_win.cpp
index 597db12fe0..30b4dd31e5 100644
--- a/plugins/Alarms/alarm_win.cpp
+++ b/plugins/Alarms/alarm_win.cpp
@@ -174,10 +174,10 @@ INT_PTR CALLBACK DlgProcAlarm(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lPar
case WMU_FAKEALARM:
{
- SetWindowText(hwndDlg, Translate("Example Alarm"));
+ SetWindowText(hwndDlg, TranslateT("Example Alarm"));
HWND hw = GetDlgItem(hwndDlg, IDC_TITLE);
- SetWindowText(hw, Translate("Example Alarm"));
- SetDlgItemText(hwndDlg, IDC_ED_DESC, Translate("Some example text. Example, example, example."));
+ SetWindowText(hw, TranslateT("Example Alarm"));
+ SetDlgItemText(hwndDlg, IDC_ED_DESC, TranslateT("Some example text. Example, example, example."));
}
return TRUE;
@@ -287,8 +287,8 @@ INT_PTR CALLBACK DlgProcAlarm(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lPar
#define AddItem(x) \
mmi.wID++; \
- mmi.dwTypeData = Translate(x); \
- mmi.cch = ( UINT )strlen(mmi.dwTypeData); \
+ mmi.dwTypeData = TranslateT(x); \
+ mmi.cch = ( UINT )_tcslen(mmi.dwTypeData); \
InsertMenuItem(hMenu, mmi.wID, FALSE, &mmi);
AddItem("5 mins");
@@ -410,7 +410,7 @@ int AlarmWinModulesLoaded(WPARAM wParam, LPARAM lParam) {
}
void InitAlarmWin() {
- hUserDll = LoadLibrary("user32.dll");
+ hUserDll = LoadLibrary(_T("user32.dll"));
if (hUserDll) {
MySetLayeredWindowAttributes = (BOOL (WINAPI *)(HWND,COLORREF,BYTE,DWORD))GetProcAddress(hUserDll, "SetLayeredWindowAttributes");
//MyAnimateWindow=(BOOL (WINAPI*)(HWND,DWORD,DWORD))GetProcAddress(hUserDll,"AnimateWindow");