mrDarker
2025-09-12 8d55ed4a167d9b09d65e4a26ece287c6e37a9c84
1. 修复SG精度检编辑框修改覆盖问题(界面频繁刷新导致)
已修改2个文件
20 ■■■■ 文件已修改
SourceCode/Bond/SGMeasurement/SGMeasurement.vcxproj.user 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
SourceCode/Bond/SGMeasurement/SGMeasurementDlg.cpp 18 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
SourceCode/Bond/SGMeasurement/SGMeasurement.vcxproj.user
@@ -4,7 +4,7 @@
    <RESOURCE_FILE>SGMeasurement.rc</RESOURCE_FILE>
  </PropertyGroup>
  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
    <DebuggerFlavor>WindowsRemoteDebugger</DebuggerFlavor>
    <DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor>
  </PropertyGroup>
  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
    <RemoteDebuggerCommand>\\DESKTOP-IODBVIQ\SGMeasurement\$(ProjectName).exe</RemoteDebuggerCommand>
SourceCode/Bond/SGMeasurement/SGMeasurementDlg.cpp
@@ -994,11 +994,21 @@
        RC nRet = SGIF_GetCalcDataALL(DeviceID, value);
        if (nRet == RC_OK) {
            for (int i = 0; i < 4; ++i) {
                m_dOutValues[i] = value[i].Value;
            }
                double dNew = value[i].Value;
                if (fabs(m_dOutValues[i] - dNew) > 1e-6) {
                    m_dOutValues[i] = dNew;
            // 更新绑定控件
            UpdateData(FALSE);
                    CString str;
                    str.Format(_T("%.3f"), dNew);
                    switch (i) {
                    case 0: GetDlgItem(IDC_EDIT_OUT1)->SetWindowText(str); break;
                    case 1: GetDlgItem(IDC_EDIT_OUT2)->SetWindowText(str); break;
                    case 2: GetDlgItem(IDC_EDIT_OUT3)->SetWindowText(str); break;
                    case 3: GetDlgItem(IDC_EDIT_OUT4)->SetWindowText(str); break;
                    }
                }
            }
        }
        else {
            CString strError;