From ad1b4b8c22b019d300af6d053e120fc830512ebd Mon Sep 17 00:00:00 2001 From: zxd <zxdvslxy@gmail.com> Date: 星期三, 20 九月 2023 17:08:10 +0800 Subject: [PATCH] 部分修改提交 1.横线竖线 2.部分转换功能 --- MyLib/LOGGER/Logger.hpp | 9 +++++---- 1 files changed, 5 insertions(+), 4 deletions(-) diff --git a/MyLib/LOGGER/Logger.hpp b/MyLib/LOGGER/Logger.hpp index 26a9da2..3deaeb9 100644 --- a/MyLib/LOGGER/Logger.hpp +++ b/MyLib/LOGGER/Logger.hpp @@ -417,7 +417,7 @@ if (CLogFiles[channel].Open(LogFilePath,CFile::modeCreate|CFile::modeNoTruncate|CFile::modeReadWrite|CFile::shareDenyWrite,&e)) { CLogFiles[channel].SeekToEnd(); - sa1.Format("\r\n-< %s >------- <LogFileOpened> ===== \r\n",DateTimeStrA); + sa1.Format("\r\n-< %s >------- <LogFileOpened : %d > ===== \r\n",DateTimeStrA,channel); CLogFiles[channel].Write(sa1.GetString(),sa1.GetLength()); LogFilesOpened[channel]=1; } @@ -481,7 +481,7 @@ } return false; } - int UpdateLogDisplay(int channel) + int UpdateLogDisplay(int channel=0) { int i,j,k; if (channel<0 || channel >= MAXLOGFILE) @@ -551,8 +551,8 @@ j=m_pRichLogWnd->LineIndex(i-1); m_pRichLogWnd->SetSel(j,j); - k=m_pRichLogWnd->LineIndex(-1)+m_pLogWnd->LineLength(-1); - m_pRichLogWnd->SetSel(k,k); +// k=m_pRichLogWnd->LineIndex(-1)+m_pLogWnd->LineLength(-1); +// m_pRichLogWnd->SetSel(k,k); m_pRichLogWnd->ReplaceSel(strChangedLog[channel]); line2=m_pRichLogWnd->GetFirstVisibleLine(); @@ -562,6 +562,7 @@ { m_pRichLogWnd->LineScroll(line1-line2); } + m_pRichLogWnd->PostMessage(WM_VSCROLL, SB_BOTTOM, 0); } strChangedLog[channel].Empty(); -- Gitblit v1.9.1