| | |
| | | int nRow = 1; |
| | | int nCol = 1; |
| | | CString strData; |
| | | /*< LYW 20211111 - #3766 ADD Start >*/ |
| | | BOOL b_checkHardAlarm = FALSE; |
| | | /*< LYW 20211111 - #3766 ADD End >*/ |
| | | |
| | | |
| | | nModuleidx = m_ctrlComboModule.GetCurSel(); |
| | | |
| | | for (int nCamidx = 0; nCamidx < m_nCameraCount; nCamidx++) |
| | |
| | | if (abs(pOffSet.dXoffSetValue) * 1000 >= m_dHardStandard) |
| | | { |
| | | m_ctrlGridReviewOffSetInfo.SetItemBkColour(nCol, nRow, RGB(255, 0, 0)); |
| | | b_checkHardAlarm = TRUE; |
| | | } |
| | | else if (abs(pOffSet.dXoffSetValue) * 1000 >= m_dWarnStandard) |
| | | { |
| | |
| | | if (abs(pOffSet.dYoffSetValue) * 1000 >= m_dHardStandard) |
| | | { |
| | | m_ctrlGridReviewOffSetInfo.SetItemBkColour(nCol, nRow + 1, RGB(255, 0, 0)); |
| | | b_checkHardAlarm = TRUE; |
| | | } |
| | | else if (abs(pOffSet.dYoffSetValue) * 1000 >= m_dWarnStandard) |
| | | { |
| | |
| | | } |
| | | } |
| | | |
| | | |
| | | if (b_checkHardAlarm == TRUE) |
| | | { |
| | | AfxMessageBox(_T("기준 초과된 Offset 값이 존재 합니다."), MB_OK | MB_ICONINFORMATION); |
| | | } |
| | | //UpdateData(FALSE); |
| | | //Invalidate(TRUE); |
| | | } |
| | |
| | | Invalidate(FALSE); |
| | | } |
| | | /*< LYW 20211025 - #3684 ADD End >*/ |
| | | |
| | | |
| | | BOOL DlgReviewOffSetTool::OnNotify(WPARAM wParam, LPARAM lParam, LRESULT* pResult) |
| | | { |
| | | // TODO: 여기에 특수화된 코드를 추가 및/또는 기본 클래스를 호출합니다. |
| | | if (m_ctrlGridReviewOffSetInfo.GetSafeHwnd() && wParam == (WPARAM)m_ctrlGridReviewOffSetInfo.GetDlgCtrlID()) |
| | | { |
| | | //*pResult = 1; |
| | | GV_DISPINFO *pDispInfo = (GV_DISPINFO*)lParam; |
| | | if (NM_DBLCLK == pDispInfo->hdr.code) |
| | | { |
| | | //int nCol = pDispInfo->item.col; |
| | | if (pDispInfo->item.row) |
| | | { |
| | | int nRow = (pDispInfo->item.row) - 1; |
| | | int CamIdx = nRow / m_nScanCount; |
| | | int scanIdx = nRow % m_nScanCount; |
| | | |
| | | if (m_pDDL2P) |
| | | { |
| | | m_pDDL2P->IDRO2P_SetOffsetPram(CamIdx, scanIdx, TRUE); |
| | | } |
| | | |
| | | } |
| | | } |
| | | } |
| | | |
| | | return CDialogEx::OnNotify(wParam, lParam, pResult); |
| | | } |