From 0200a36062386b937567265e3ea01f93eaa8f1f5 Mon Sep 17 00:00:00 2001
From: QuakeGod <quakegod@sina.com>
Date: 星期五, 20 十月 2023 22:10:19 +0800
Subject: [PATCH] dev1

---
 MTerm2/MTerm2View.cpp |   38 +++++++++++++++++++++++++++++++++-----
 1 files changed, 33 insertions(+), 5 deletions(-)

diff --git a/MTerm2/MTerm2View.cpp b/MTerm2/MTerm2View.cpp
index 681f6d3..ac169e9 100644
--- a/MTerm2/MTerm2View.cpp
+++ b/MTerm2/MTerm2View.cpp
@@ -1446,18 +1446,45 @@
 			Cells[m_FocusRow][j].bLeftLineDn = 1;
 		}
 	}
+
 	// 褰撳墠琛� 鍔犲叆 瑙︾偣
-	m_FocusCol;
-	Cells[m_FocusRow][0].nType= typeNO;
-	Cells[m_FocusRow][0].nDataType = KLCoilTypeX;
-	Cells[m_FocusRow][0].nDataAddr = 15;
-	Cells[m_FocusRow][0].sCoilName = "ABCDEFG";
+//	m_FocusCol;
+//	Cells[m_FocusRow][0].nType= typeNO;
+//	Cells[m_FocusRow][0].nDataType = KLCoilTypeX;
+//	Cells[m_FocusRow][0].nDataAddr = 15;
+//	Cells[m_FocusRow][0].sCoilName = "ABCDEFG";
 
 	m_bModified = 1;
 	needReDraw = 1;
 	this->RedrawWindow();
 }
+int FindTypeIndex(CString str[], CString strType, int num)
+{
+	for (int i = 0;i < num;i++)
+	{
+		if (strType == str[i])
+		{
+			return i;
+		}
+	}
+	return -1;
+}
 
+void CMTerm2View::GetIncToView(stCell cell1)               //**************************************************************************************************//
+{
+
+
+	Cells[m_FocusRow][m_FocusCol] = cell1;
+
+	m_bModified = 1;
+	needReDraw = 1;
+	m_FocusCol += 1;
+	if (m_FocusCol >= 16) 
+	{ m_FocusCol = 0;m_FocusRow += 1; }
+	
+	this->RedrawWindow();
+	
+}
 void CMTerm2View::OnUpdateInsertBlankLine(CCmdUI *pCmdUI)
 {
 	// TODO: 鍦ㄦ娣诲姞鍛戒护鏇存柊鐢ㄦ埛鐣岄潰澶勭悊绋嬪簭浠g爜
@@ -2730,3 +2757,4 @@
 	}
 	return 0;
 }
+

--
Gitblit v1.9.1