From 4b7616f61a6a37cc917cdbcb131f91272ab2e6fb Mon Sep 17 00:00:00 2001
From: chenluhua1980 <Chenluhua@qq.com>
Date: 星期五, 06 二月 2026 16:03:05 +0800
Subject: [PATCH] 1.修复MSGDLg跨线程更新界面闪退问题; 2.完善拔片存片日志;
---
SourceCode/Bond/Servo/MsgDlg.h | 15 +++++++++++++++
1 files changed, 15 insertions(+), 0 deletions(-)
diff --git a/SourceCode/Bond/Servo/MsgDlg.h b/SourceCode/Bond/Servo/MsgDlg.h
index 3e97d8b..020eba1 100644
--- a/SourceCode/Bond/Servo/MsgDlg.h
+++ b/SourceCode/Bond/Servo/MsgDlg.h
@@ -9,6 +9,13 @@
#define MSG_BOX_ERROR 0x03
#define MSG_BOX_SUCCEED 0x04
+#define WM_MSGDLG_SET_TITLE (WM_APP + 400)
+#define WM_MSGDLG_SET_MESSAGE (WM_APP + 401)
+#define WM_MSGDLG_SET_ICON (WM_APP + 402)
+#define WM_MSGDLG_SET_MARQUEE (WM_APP + 403)
+#define WM_MSGDLG_DELAY_CLOSE (WM_APP + 404)
+#define WM_MSGDLG_SET_COMPLETE (WM_APP + 405)
+
class CMsgDlg : public CDialogEx
{
DECLARE_DYNAMIC(CMsgDlg)
@@ -38,6 +45,13 @@
private:
void Resize();
void UpdateIcon();
+ bool IsUiThread() const;
+ LRESULT OnMsgSetTitle(WPARAM wParam, LPARAM lParam);
+ LRESULT OnMsgSetMessage(WPARAM wParam, LPARAM lParam);
+ LRESULT OnMsgSetIcon(WPARAM wParam, LPARAM lParam);
+ LRESULT OnMsgSetMarquee(WPARAM wParam, LPARAM lParam);
+ LRESULT OnMsgDelayClose(WPARAM wParam, LPARAM lParam);
+ LRESULT OnMsgSetComplete(WPARAM wParam, LPARAM lParam);
private:
COLORREF m_crBkgnd;
@@ -53,6 +67,7 @@
DWORD_PTR m_dwData;
DWORD_PTR m_dwDataEx;
BOOL m_bDelayClose;
+ DWORD m_uiThreadId;
// 瀵硅瘽妗嗘暟鎹�
--
Gitblit v1.9.3