From 258d9d2d72bbf199cd86fd3e7bd824e1f117bab8 Mon Sep 17 00:00:00 2001
From: LAPTOP-SNT8I5JK\Boounion <Chenluhua@qq.com>
Date: 星期四, 29 五月 2025 17:49:46 +0800
Subject: [PATCH] 1.放片物流控制和模拟测试;

---
 SourceCode/Bond/Servo/Servo.cpp |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/SourceCode/Bond/Servo/Servo.cpp b/SourceCode/Bond/Servo/Servo.cpp
index e6eb33a..bd81237 100644
--- a/SourceCode/Bond/Servo/Servo.cpp
+++ b/SourceCode/Bond/Servo/Servo.cpp
@@ -10,6 +10,7 @@
 #include "SECSRuntimeManager.h"
 #include "ProductionLogManager.h"
 #include "VerticalLine.h"
+#include "HorizontalLine.h"
 #include "EqsGraphWnd.h"
 #include "MapPosWnd.h"
 #include "HmTab.h"
@@ -52,7 +53,7 @@
 
 BOOL CServoApp::InitInstance()
 {
-	// 如果一个运行在 Windows XP 上的应用程序清单指定要
+	// TODO: 调用 AfxInitRichEdit2() 以初始化 richedit2 库。\n"	// 如果一个运行在 Windows XP 上的应用程序清单指定要
 	// 使用 ComCtl32.dll 版本 6 或更高版本来启用可视化方式,
 	//则需要 InitCommonControlsEx()。  否则,将无法创建窗口。
 	INITCOMMONCONTROLSEX InitCtrls;
@@ -99,6 +100,7 @@
 	// 注册控件
 	CServoGraph::RegisterWndClass();
 	CVerticalLine::RegisterWndClass();
+	CHorizontalLine::RegisterWndClass();
 	CEqsGraphWnd::RegisterWndClass();
 	CMapPosWnd::RegisterWndClass();
 	CHmTab::RegisterWndClass();
@@ -113,6 +115,10 @@
 	InitGDIPlus();
 
 
+	// 初始化 MFC RichEdit 控件
+	AfxInitRichEdit2();
+
+
 	// 初始化报警管理器
 	try {
 		if (!AlarmManager::getInstance().initAlarmTable()) {

--
Gitblit v1.9.3