SDC C-Project CF Review 프로그램
ReviewHistory/ReveiwHistory/ReveiwHistoryDlg.cpp
@@ -231,13 +231,6 @@
   InitGridDefectLIst(&m_gridDefectInfo, IDC_STATIC_GRID_DEFECT);
   InitGridGlassLIst(&m_gridGlassInfo, IDC_STATIC_GRID_GLASS_INFO);
   /*< LYW 20211025 - #3684 ADD Start >*/
   CString strPath = _T("");
   InitDataInfo();
   strPath.Format(_T("%s%s"), REVIEW_OFFSET_CONFIGFILE_PATH, REVIEW_OFFSET_CONFIGFILE_NAME);
   LoadOffset(strPath);
   /*< LYW 20211025 - #3684 ADD End >*/
   OnViewReviewdefect();
   m_chkReviewDefect.SetCheck(TRUE);
@@ -263,6 +256,11 @@
   m_ctlProgress.SetRange(0, 100);
   m_ctlProgress.ShowWindow(FALSE);
   /*< LYW 20211025 - #3684 ADD Start >*/
   InitDataInfo();
   PostThreadMessage(m_ThreadId, UM_THREAD_LOADING_OFFSET, 0, 0);
   /*< LYW 20211025 - #3684 ADD End >*/
   return TRUE;  // 포커스를 컨트롤에 설정하지 않으면 TRUE를 반환합니다.
}
@@ -930,7 +928,11 @@
               //ImageShow(pDefectInfo->m_nDefectID);
               if (!m_bDefectAll)
               {
                  ImageShow(pDispInfo->item.row - 1);
                  /*< LYW 20211221 - #5000 ADD Start >*/
                  ImageShow(pDefectInfo->m_nDefectID);
                  /*< LYW 20211221 - #5000 ADD End >*/
                  //origin
                  //ImageShow(pDispInfo->item.row - 1);
               }
               else
               {
@@ -940,12 +942,15 @@
               //정렬 순서를 사용자가 원하는 순으로 하자
               if (!m_bDefectAll)
               {
                  m_sldImg.SetPos(pDispInfo->item.row - 1);
                  int nPos = m_sldImg.GetPos();
                  CString strPos;
                  strPos.Format(_T("%d"), nPos);
                  m_ctrCount.SetWindowText(strPos);
                  /*< LYW 20211221 - #5000 Delete Start >*/
//                   m_sldImg.SetPos(pDispInfo->item.row - 1);
//
//                   int nPos = m_sldImg.GetPos();
//                   CString strPos;
//                   strPos.Format(_T("%d"), nPos);
//                   m_ctrCount.SetWindowText(strPos);
                  /*< LYW 20211221 - #5000 Delete End >*/
               }
            }
         }
@@ -1234,7 +1239,11 @@
      {
         if (m_Formation.m_vecImage[i].m_nDefectID == nSelectDefect)
         {
            ImageShow(i);
            /*< LYW 20211221 - #5000 ADD Start >*/
            ImageShow(nSelectDefect);
            /*< LYW 20211221 - #5000 ADD End >*/
            //origin
            //ImageShow(i);
            break;
         }
      }
@@ -2152,8 +2161,16 @@
      if (!m_bDefectAll)
      {
         nIndex = nDefectID;
         break;
         /*< LYW 20211221 - #5000 ADD Start >*/
         if (pImage->m_nDefectID == nDefectID)
         {
            nIndex = i;
            break;
         }
         /*< LYW 20211221 - #5000 ADD End >*/
         //Origin
//          nIndex = nDefectID;
//          break;
      }
      else
      {
@@ -2399,8 +2416,11 @@
      _akReviewList* pImageInfo = &m_Formation.m_vecImage[nPos];
      m_FormationMap.setSelectDefect(pImageInfo->m_nDefectID);
      //ImageShow(pImageInfo->m_nDefectID/*nPos*/);
      ImageShow(nPos);
      /*< LYW 20211221 - #5000 ADD Start >*/
      ImageShow(pImageInfo->m_nDefectID/*nPos*/);
      /*< LYW 20211221 - #5000 ADD End >*/
      //Origin
      //ImageShow(nPos);
      setDefectShow(pImageInfo->m_nDefectID, 1);
   }
}
@@ -2711,8 +2731,10 @@
   int center_y = (SrcImage.GetHeight() / 2); // 회전 중심점
   double seta = 3.14 / (180.0 / degree); // 라디안
   double CosSeta = cos(seta);
   double SinSeta = sin(seta);
   double CosSeta = -1;
   double SinSeta = 0;
//    double CosSeta = cos(seta);
//    double SinSeta = sin(seta);
   for (int y = 0; y < Height; y++)
   {
@@ -4206,6 +4228,16 @@
   bReturn = macroFile.Write(strFilePath);
   /*< LYW 20220525 - #4158 ADD Start >*/
   CString strRTMSBackUpFilePath;
   strRTMSBackUpFilePath.Format(_T("%s\\%s"), _REVIEW_SERVER_SYSTEM_SETTING_BACKUP_PATH_CPJT, REVIEW_OFFSET_CONFIGFILE_NAME);
   if (bReturn)
   {
      CopyFile(REVIEW_OFFSET_CONFIGFILE_FULL_PATHNAME, strRTMSBackUpFilePath, FALSE);
   }
   /*< LYW 20220525 - #4158 ADD End >*/
   if (bReturn)
   {
      /*< LYW 20211028 - #3684 ADD Start >*/
@@ -4425,6 +4457,7 @@
DWORD RunThreadReviewHistory(LPVOID param)
{
   MSG msg;
   CString strPath = _T("");
   CReveiwHistoryDlg* pDlg = (CReveiwHistoryDlg*)param;
   while (GetMessage(&msg, NULL, 0, 0))
   {
@@ -4437,6 +4470,11 @@
         pDlg->PostMessage(UM_WARNING_OFFSET);
         break;
      case UM_THREAD_LOADING_OFFSET:
         strPath.Format(_T("%s%s"), REVIEW_OFFSET_CONFIGFILE_PATH, REVIEW_OFFSET_CONFIGFILE_NAME);
         pDlg->LoadOffset(strPath);
         break;
      default:
         break;
      }