From 61deef5cdf96cbfdd6ad45be49e80d597c00ca65 Mon Sep 17 00:00:00 2001 From: QuakeGod <QuakeGod@sina.com> Date: 星期二, 24 十二月 2024 08:37:21 +0800 Subject: [PATCH] 2024-12-24 --- MTerm1/MyFormLog.cpp | 16 +++++++++++----- 1 files changed, 11 insertions(+), 5 deletions(-) diff --git a/MTerm1/MyFormLog.cpp b/MTerm1/MyFormLog.cpp index 9bf17dd..1c1dc8d 100644 --- a/MTerm1/MyFormLog.cpp +++ b/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; -- Gitblit v1.9.1