| | |
| | | s1.Format(_T("Insert Blank Line"));
|
| | | SysLog(s1);
|
| | | m_FocusRow;
|
| | | //当前行之后的所有,下移一行
|
| | | for (int i = m_nTotalRow - 1; i >= m_FocusRow; i--) {
|
| | | for (int j = 0; j < m_CellPerLine; j++) {
|
| | | Cells[i + 1][j] = Cells[i][j];
|
| | | }
|
| | | }
|
| | | m_nTotalRow += 1;
|
| | | |
| | | // 当前行灰色 |
| | | for (int j = 0; j < m_CellPerLine; j++) {
|
| | | Cells[m_FocusRow][j].clear();
|
| | | Cells[m_FocusRow][j].bEditing = 1;
|
| | |
| | | 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_bModified = 1;
|
| | | needReDraw = 1;
|
| | | this->RedrawWindow();
|