SourceCode/Bond/BoounionPLC/PagePlcList.cpp
@@ -72,6 +72,15 @@ 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(); if (hSelectedItem != NULL) { CPLC* pSelectedPlc = (CPLC*)m_treeCtrl.GetItemData(hSelectedItem); if (pSelectedPlc != nullptr) { theApp.m_model.notifyPtr(RX_CODE_SELECT_PLC, pSelectedPlc); } } } }