| | |
| | | CDialogEx::DoDataExchange(pDX); |
| | | } |
| | | |
| | | void CPageTransferLog::InitRxWindow() |
| | | void CPageTransferLog::InitRxWindows() |
| | | { |
| | | /* code */ |
| | | // 订阅数据 |
| | |
| | | pAny->addRef(); |
| | | int code = pAny->getCode(); |
| | | |
| | | //if (RX_CODE_ALARM_SET == code) { |
| | | // UpdatePageData(); |
| | | //} |
| | | //else if (RX_CODE_ALARM_CLEAR == code) { |
| | | // UpdatePageData(); |
| | | //} |
| | | if (RX_CODE_EQ_ROBOT_TASK == code) { |
| | | UpdatePageData(); |
| | | } |
| | | |
| | | pAny->release(); |
| | | }, [&]() -> void { |
| | |
| | | return; |
| | | } |
| | | |
| | | int nItem = m_listCtrl.InsertItem(0, _T("")); |
| | | int nIndex = m_listCtrl.GetItemCount(); |
| | | if (nIndex < 0) { |
| | | return; |
| | | } |
| | | |
| | | int nItem = m_listCtrl.InsertItem(nIndex, _T("")); |
| | | CString str; |
| | | str.Format(_T("%d"), data.nRecordId); |
| | | m_listCtrl.SetItemText(nItem, 1, str); |
| | |
| | | { |
| | | if (nIDEvent == 1) { |
| | | KillTimer(1); |
| | | InitRxWindow(); |
| | | InitRxWindows(); |
| | | } |
| | | CDialogEx::OnTimer(nIDEvent); |
| | | } |
| | |
| | | m_nCurPage++; |
| | | UpdatePageData(); |
| | | } |
| | | } |
| | | |
| | | BOOL CPageTransferLog::PreTranslateMessage(MSG* pMsg) |
| | | { |
| | | if (pMsg->wParam == VK_RETURN || pMsg->wParam == VK_ESCAPE) { |
| | | return TRUE; |
| | | } |
| | | |
| | | return CDialogEx::PreTranslateMessage(pMsg); |
| | | } |