QuakeGod
2024-12-24 61deef5cdf96cbfdd6ad45be49e80d597c00ca65
MTerm1/MyFormLog.cpp
@@ -87,17 +87,21 @@
{
   CFormView::OnSize(nType, cx, cy);
   // TODO: 在此处添加消息处理程序代码
   CString s1;
   CWnd * pwnd;
/*
///*
   pwnd=GetDlgItem(IDC_EDIT_LOG);
   if (pwnd!=NULL)
   {
//      RECT   rect1;
      pwnd->SetWindowPos(NULL,0,0,cx,cy-20,NULL);
   }
//*/
//      s1.Format(_T("OnSize %d  %d %d \r\n"), nType, cx, cy);
      // ((CEdit*)GetDlgItem(IDC_EDIT_LOG))->ReplaceSel(s1);
///*
   }
// */
/*
   pwnd = GetDlgItem(IDC_RICHEDIT2_LOG);
   if (pwnd != NULL)
   {
@@ -132,7 +136,9 @@
   CString BuildStr = _T("20210728");
   // TODO: 在此添加专用代码和/或调用基类
   myLogger1.SetLogPathName(_T("D:\\Logs\\MTerm1"), _T("MTerm1"));
   myLogger1.AttachWnd(m_richedit_log.m_hWnd);
   myLogger1.AttachWnd(m_edit_log.m_hWnd);
//   myLogger1.AttachWnd(m_richedit_log.m_hWnd);
   myLogger1.bShowLog[0] = 1;
   myLogger1.bShowThreadId = 0;
   myLogger1.bShowChannel = 0;