summaryrefslogtreecommitdiff
path: root/yapp/popup_history.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'yapp/popup_history.cpp')
-rw-r--r--yapp/popup_history.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/yapp/popup_history.cpp b/yapp/popup_history.cpp
index 6e9b59e..b10062f 100644
--- a/yapp/popup_history.cpp
+++ b/yapp/popup_history.cpp
@@ -154,17 +154,17 @@ void RefreshPopupHistory(HWND hWnd)
int i;
LVITEM item = {0};
item.mask = LVIF_TEXT;
- wchar_t buffer[1024];
+ TCHAR buffer[1024];
struct tm *myTime;
for (i = 0; i < lstPopupHistory.Count(); i++)
{
item.iItem = i;
PopupHistoryData *popupItem = lstPopupHistory.Get(i);
- item.pszText = popupItem->titleW;
+ item.pszText = popupItem->titleT;
ListView_InsertItem(hHistoryList, &item);
- ListView_SetItemText(hHistoryList, i, 1, popupItem->messageW);
+ ListView_SetItemText(hHistoryList, i, 1, popupItem->messageT);
myTime = localtime(&popupItem->timestamp);
- wcsftime(buffer, 1024, L"%c", myTime);
+ _tcsftime(buffer, 1024, _T("%c"), myTime);
ListView_SetItemText(hHistoryList, i, 2, buffer);
}
@@ -315,13 +315,13 @@ BOOL CALLBACK DlgProcHistLst(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam)
LVCOLUMN col;
col.mask = LVCF_TEXT | LVCF_WIDTH;
- col.pszText = L"Title";
+ col.pszText = _T("Title");
col.cx = 100;
ListView_InsertColumn(hHistoryList, 0, &col);
- col.pszText = L"Message";
+ col.pszText = _T("Message");
col.cx = 450;
ListView_InsertColumn(hHistoryList, 1, &col);
- col.pszText = L"Timestamp";
+ col.pszText = _T("Timestamp");
col.cx = 115;
ListView_InsertColumn(hHistoryList, 2, &col);
RefreshPopupHistory(hWnd);