From eea0893be9d4ef175ab26e8fea51d41fa33477ce Mon Sep 17 00:00:00 2001 From: Yao Chunli <56721587@qq.com> Date: 星期六, 28 五月 2022 08:20:57 +0800 Subject: [PATCH] change eventlog --- MTerm2/MTerm2Doc.cpp | 25 ++++++++++++++++++++++++- 1 files changed, 24 insertions(+), 1 deletions(-) diff --git a/MTerm2/MTerm2Doc.cpp b/MTerm2/MTerm2Doc.cpp index 8500f61..95a36ee 100644 --- a/MTerm2/MTerm2Doc.cpp +++ b/MTerm2/MTerm2Doc.cpp @@ -30,7 +30,8 @@ #include "DialogStatusShow.h" #include "DialogSysRegSet.h" #include "DialogFactCfg.h" - +#include "DialogDateTime.h" +#include "DialogEventLog.h" #include "HvSerialPort.h" #include <functional> @@ -157,6 +158,8 @@ ON_UPDATE_COMMAND_UI(ID_SIMULATE, &CMTerm2Doc::OnUpdateSimulate) ON_COMMAND(ID_MENU_STATUS_SHOW, &CMTerm2Doc::OnMenuStatusShow) ON_COMMAND(ID_MENU_FACT_CFG, &CMTerm2Doc::OnMenuFactCfg) + ON_COMMAND(ID_MENU_DATETIME_SET, &CMTerm2Doc::OnMenuDatetimeSet) + ON_COMMAND(ID_MENU_EVENT_LOG, &CMTerm2Doc::OnMenuEventLog) END_MESSAGE_MAP() @@ -1958,4 +1961,24 @@ } } +void CMTerm2Doc::OnMenuDatetimeSet() +{ + // TODO: 鍦ㄦ娣诲姞鍛戒护澶勭悊绋嬪簭浠g爜 + CDialogDateTime dialog1; + INT_PTR r = dialog1.DoModal(); + if (r == IDOK) + { + } +} + +void CMTerm2Doc::OnMenuEventLog() +{ + // TODO: 鍦ㄦ娣诲姞鍛戒护澶勭悊绋嬪簭浠g爜 + CDialogEventLog dialog1; + INT_PTR r = dialog1.DoModal(); + if (r == IDOK) + { + + } +} -- Gitblit v1.9.1