From 78e91efc666606328e3fc63fbd54eb2da4442799 Mon Sep 17 00:00:00 2001
From: QuakeGod <quakegod@sina.com>
Date: 星期二, 12 九月 2023 20:07:08 +0800
Subject: [PATCH] update mterm1doc.h with comment

---
 MTerm1/MTerm1View.h |   39 ++++++++++++++++++++-------------------
 1 files changed, 20 insertions(+), 19 deletions(-)

diff --git a/MTerm1/MTerm1View.h b/MTerm1/MTerm1View.h
index 85053dc..4276493 100644
--- a/MTerm1/MTerm1View.h
+++ b/MTerm1/MTerm1View.h
@@ -48,7 +48,7 @@
 		typeRESET=21,
 
 		typeCMP,
-		typeExt1,		//琚墠闈㈢殑鎸囦护鍗犵敤鐨勭┖闂�
+		typeExt1,	//23 0x17	//琚墠闈㈢殑鎸囦护鍗犵敤鐨勭┖闂�
 		typeExt2,
 		typeExt3,
 
@@ -62,28 +62,28 @@
 	};
 	struct stCell
 	{
-		int nType;
-		int nProgStep;
-		int bFocused = 0;
-		int bSelected = 0;
-		int bEditing = 0;
-		int bModified = 0;
+		int nType;				//鍗曞厓绫诲瀷銆�
+		int nProgStep;			//瀵瑰簲绋嬪簭鐨勬鏁�
+		int bFocused = 0;		//鐑偣閫変腑
+		int bSelected = 0;		//閫変腑
+		int bEditing = 0;		//缂栬緫涓�
+		int bModified = 0;		//琚慨鏀逛簡
 
-		int bErrFocus = 0;
+		int bErrFocus = 0;		//閿欒鐑偣
 
-		int bLeftLineUp = 0;
-		int bLeftLineDn = 0;
-		int nStat = 0;
-		int nTrace = 0;
-		int nDataWidth = 0;
-		int nDataType=0;
-		int nDataAddr=0;
-		CString sParam;
-		CString sCoilName;
+		int bLeftLineUp = 0;	//宸︿晶鍚戜笂绔栫嚎
+		int bLeftLineDn = 0;	//宸︿晶鍚戜笅绔栫嚎
+		int nStat = 0;			//褰撳墠鐘舵��//   鐩戞帶鏃舵牴鎹姸鎬侊紝鏄剧ず鏁板�兼垨鑹插潡
+		int nTrace = 0;			//褰撳墠璺熻釜鐘舵��
+//		int nDataWidth = 0;
+		int nDataType=0;		//鍙傛暟鏁版嵁绫诲瀷
+		int nDataAddr=0;		//鍙傛暟鏁版嵁鍦板潃/鍊�
+		CString sParam;			//鍙傛暟鍚�
+		CString sCoilName;		//绾垮湀鍚�
 		void clear() { 
 			nType = 0; bFocused = 0; bSelected = 0; bEditing = 0; bModified = 0;
 			bLeftLineUp = 0; bLeftLineDn = 0; nStat = 0;
-			nDataWidth = 0; nDataType = 0; nDataAddr = 0;
+			nDataType = 0; nDataAddr = 0;
 			sParam.Empty(); sCoilName.Empty();
 		}
 	};
@@ -206,6 +206,7 @@
 
 	int ScrollCellIntoView(int nRow, int nCol);
 	int isCellInView(int nRow, int nCol);
+	int CellFocusChg(int nRow, int nCol);
 
 // 閲嶅啓
 public:
@@ -281,7 +282,7 @@
 	afx_msg void OnInputIoComment();
 	afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
 	int ScanLDSCells(int nStartLine, int nEndLine, int nPosY, int nPosX, int nLevel, stProgSection & progsec, CString & sProgSec, int &nSteps);
-	void GetIncToView(stCell cell1);
+	void SetCellToView(stCell cell1);
 
 };
 

--
Gitblit v1.9.1