From 3b04f942bd51c0453cbb64167cbdb7de69159bd5 Mon Sep 17 00:00:00 2001 From: QuakeGod <QuakeGod@sina.com> Date: 星期四, 29 七月 2021 09:18:17 +0800 Subject: [PATCH] 2021-07-28 commit --- MultiTerminal1/CDialogEventLog.cpp | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/MultiTerminal1/CDialogEventLog.cpp b/MultiTerminal1/CDialogEventLog.cpp index f5c9cba..97f4bf7 100644 --- a/MultiTerminal1/CDialogEventLog.cpp +++ b/MultiTerminal1/CDialogEventLog.cpp @@ -90,13 +90,16 @@ res = MyKLProtocol1.GetEventLog(1, i, nReadCount, &KEventLogs[i]); s1.Format(_T(" Get EventLog %d Result r=%d "),i, res); s1.AppendFormat(_T("%d %d %d %d %d %d"), KEventLogs[i].Sign1, KEventLogs[i].Seq1, KEventLogs[i].nTime, KEventLogs[i].nType, KEventLogs[i].nParam1, KEventLogs[i].nParam2); - SysLog(s1); + // SysLog(s1); s1.Format(_T("%d"), i); m_list_eventlog.InsertItem(i, s1); s1.Format(_T("%d"), KEventLogs[i].Seq1); m_list_eventlog.SetItemText(i, 1, s1); s1.Format(_T("%d"), KEventLogs[i].nTime); + CTime ctime1 = KEventLogs[i].nTime; + s1 = ctime1.Format(_T("%Y-%m-%d %H:%M:%S")); + m_list_eventlog.SetItemText(i, 2, s1); s1.Format(_T("%d"), KEventLogs[i].nType); m_list_eventlog.SetItemText(i, 3, s1); @@ -104,7 +107,6 @@ m_list_eventlog.SetItemText(i, 4, s1); s1.Format(_T("%d"), KEventLogs[i].nParam2); m_list_eventlog.SetItemText(i, 5, s1); - } return 0; -- Gitblit v1.9.1