SourceCode/Bond/Servo/CEquipmentPage2.cpp
@@ -74,8 +74,9 @@
   ListView_SetImageList(m_listCtrl.GetSafeHwnd(), imageList, LVSIL_SMALL);
   m_listCtrl.InsertColumn(0, _T(""), LVCFMT_RIGHT, width[0]);
   m_listCtrl.InsertColumn(1, _T("ID"), LVCFMT_LEFT, width[1]);
   m_listCtrl.InsertColumn(2, _T("时间"), LVCFMT_LEFT, width[2]);
   m_listCtrl.SetColumnWidth(2, LVSCW_AUTOSIZE_USEHEADER);
   m_listCtrl.InsertColumn(2, _T("贴合"), LVCFMT_LEFT, width[2]);
   m_listCtrl.InsertColumn(3, _T("时间"), LVCFMT_LEFT, width[3]);
   m_listCtrl.SetColumnWidth(3, LVSCW_AUTOSIZE_USEHEADER);
   ASSERT(m_pEquipment);
@@ -84,10 +85,14 @@
   for (auto item : list) {
      item->addRef();            
      item->release();      // 释放list中的引用
      SERVO::CGlass* pBuddy = item->getBuddy();
      int index = m_listCtrl.InsertItem(m_listCtrl.GetItemCount(), _T(""));
      m_listCtrl.SetItemData(index, (DWORD_PTR)item);
      m_listCtrl.SetItemText(index, 1, item->getID().c_str());
      if (pBuddy != nullptr) {
         m_listCtrl.SetItemText(index, 2, pBuddy->getID().c_str());
      }
   }
   return TRUE;  // return TRUE unless you set the focus to a control