From a4f4d9aa60ac7b9137047ed1e7dc8e1ef822ff19 Mon Sep 17 00:00:00 2001
From: LAPTOP-SNT8I5JK\Boounion <Chenluhua@qq.com>
Date: 星期三, 25 六月 2025 14:01:50 +0800
Subject: [PATCH] 1.日志窗口的自动流动模式和固定模式自动切换;
---
SourceCode/Bond/Servo/PageLog.cpp | 13 +------------
1 files changed, 1 insertions(+), 12 deletions(-)
diff --git a/SourceCode/Bond/Servo/PageLog.cpp b/SourceCode/Bond/Servo/PageLog.cpp
index 123a5a4..4729c34 100644
--- a/SourceCode/Bond/Servo/PageLog.cpp
+++ b/SourceCode/Bond/Servo/PageLog.cpp
@@ -40,7 +40,6 @@
BEGIN_MESSAGE_MAP(CPageLog, CDialogEx)
ON_WM_CTLCOLOR()
ON_WM_SIZE()
- ON_WM_TIMER()
ON_WM_DESTROY()
ON_WM_CLOSE()
ON_NOTIFY(BLBUTTON_MENU_ITEM_CLICKED, IDC_BUTTON_LEVEL, &CPageLog::OnButtonLevelMenuClicked)
@@ -106,7 +105,7 @@
BOOL CPageLog::OnInitDialog()
{
CDialogEx::OnInitDialog();
- SetTimer(1, 3000, nullptr);
+ InitRxWindow();
// 缓存
@@ -158,8 +157,6 @@
// 内容
m_logEdit.SetMaxLineCount(500);
m_logEdit.SetLimitText(-1);
-
-
Resize();
@@ -172,14 +169,6 @@
CDialogEx::OnSize(nType, cx, cy);
if (GetDlgItem(IDC_EDIT_LOG) == nullptr) return;
Resize();
-}
-
-void CPageLog::OnTimer(UINT_PTR nIDEvent)
-{
- if (1 == nIDEvent) {
- KillTimer(1);
- InitRxWindow();
- }
}
void CPageLog::Resize()
--
Gitblit v1.9.3