summaryrefslogtreecommitdiff
path: root/plugins/Alarms/alarm_win.cpp
diff options
context:
space:
mode:
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");