LAPTOP-SNT8I5JK\Boounion
2025-01-13 c6bfb4fc0801c4cb1f9dd2128df5f20d2e9cf27d
SourceCode/Bond/BoounionPLC/PagePlcList.cpp
@@ -72,6 +72,14 @@
               BOOL bNoPLC = m_treeCtrl.GetChildItem(nullptr) == nullptr;
               m_treeCtrl.ShowWindow(bNoPLC ? SW_HIDE : SW_SHOW);
               GetDlgItem(IDC_LABEL_NO_PLC)->ShowWindow(bNoPLC ? SW_SHOW : SW_HIDE);
               // 更新节点
               HTREEITEM hSelectedItem = m_treeCtrl.GetSelectedItem();
               CPLC* pSelectedPlc = nullptr;
               if (hSelectedItem != NULL) {
                  pSelectedPlc = (CPLC*)m_treeCtrl.GetItemData(hSelectedItem);
               }
               theApp.m_model.notifyPtr(RX_CODE_SELECT_PLC, pSelectedPlc);
            }
         }