From 958cfa6b2e1c1eec0e20edc50816ef18f10cbf09 Mon Sep 17 00:00:00 2001
From: mrDarker <mr.darker@163.com>
Date: 星期四, 29 五月 2025 15:50:34 +0800
Subject: [PATCH] 1. 修改本地模式Port设置界面 2. 添加Transfer数据库管理类
---
SourceCode/Bond/Servo/PortConfigurationDlg.cpp | 28 ++++++++++++++--------------
1 files changed, 14 insertions(+), 14 deletions(-)
diff --git a/SourceCode/Bond/Servo/PortConfigurationDlg.cpp b/SourceCode/Bond/Servo/PortConfigurationDlg.cpp
index b19be21..79a1e11 100644
--- a/SourceCode/Bond/Servo/PortConfigurationDlg.cpp
+++ b/SourceCode/Bond/Servo/PortConfigurationDlg.cpp
@@ -30,7 +30,7 @@
return;
}
- const int nCols = 4;
+ const int nCols = 3;
const int nFixRows = 1;
const int nRows = 9;
@@ -87,10 +87,10 @@
void CPortConfigurationDlg::FillGrid()
{
- CStringArray recipeOptions;
- recipeOptions.Add(_T("Recipe A"));
- recipeOptions.Add(_T("Recipe B"));
- recipeOptions.Add(_T("Recipe C"));
+ //CStringArray recipeOptions;
+ //recipeOptions.Add(_T("Recipe A"));
+ //recipeOptions.Add(_T("Recipe B"));
+ //recipeOptions.Add(_T("Recipe C"));
for (int i = 1; i < 9; ++i) {
CString strIndex;
@@ -99,19 +99,19 @@
m_wndGrid.SetItemState(i, 0, GVIS_READONLY);
// EQ Recipe - ComboBox
- if (m_wndGrid.SetCellType(i, 1, RUNTIME_CLASS(CGridCellCombo))) {
- CGridCellCombo* pCell = static_cast<CGridCellCombo*>(m_wndGrid.GetCell(i, 1));
- pCell->SetOptions(recipeOptions);
- pCell->SetStyle(CBS_DROPDOWNLIST);
- }
- m_wndGrid.SetItemText(i, 1, recipeOptions[0]);
+ //if (m_wndGrid.SetCellType(i, 1, RUNTIME_CLASS(CGridCellCombo))) {
+ // CGridCellCombo* pCell = static_cast<CGridCellCombo*>(m_wndGrid.GetCell(i, 1));
+ // pCell->SetOptions(recipeOptions);
+ // pCell->SetStyle(CBS_DROPDOWNLIST);
+ //}
+ //m_wndGrid.SetItemText(i, 1, recipeOptions[0]);
// Panel ID - 鍙紪杈�
- m_wndGrid.SetItemText(i, 2, _T(""));
+ m_wndGrid.SetItemText(i, 1, _T(""));
// Checkbox
- m_wndGrid.SetCellType(i, 3, RUNTIME_CLASS(CGridCellCheck));
- CGridCellCheck* pCheck = static_cast<CGridCellCheck*>(m_wndGrid.GetCell(i, 3));
+ m_wndGrid.SetCellType(i, 2, RUNTIME_CLASS(CGridCellCheck));
+ CGridCellCheck* pCheck = static_cast<CGridCellCheck*>(m_wndGrid.GetCell(i, 2));
if (pCheck) {
pCheck->SetCheck(FALSE);
}
--
Gitblit v1.9.3