Yao Chunli
2022-05-28 eea0893be9d4ef175ab26e8fea51d41fa33477ce
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: 在此添加命令处理程序代码
   CDialogDateTime dialog1;
   INT_PTR r = dialog1.DoModal();
   if (r == IDOK)
   {
   }
}
void CMTerm2Doc::OnMenuEventLog()
{
   // TODO: 在此添加命令处理程序代码
   CDialogEventLog dialog1;
   INT_PTR r = dialog1.DoModal();
   if (r == IDOK)
   {
   }
}