From 7a7f5a677f5bddb571273c8f490ca88ca9653d67 Mon Sep 17 00:00:00 2001 From: LYW <leeyeanwoo@diteam.co.kr> Date: 월, 18 10월 2021 18:25:48 +0900 Subject: [PATCH] Ongoing90 #3684 CF AOI Review 전설비 Review History Defect이미지 클릭시 Offset 자동 계산 기능 추가 --- ReviewHistory/ReveiwHistory/PathSettingDlg.cpp | 41 ++++++++++++++++++++++++++++++++++++++++- 1 files changed, 40 insertions(+), 1 deletions(-) diff --git a/ReviewHistory/ReveiwHistory/PathSettingDlg.cpp b/ReviewHistory/ReveiwHistory/PathSettingDlg.cpp index d5f7424..73c9669 100644 --- a/ReviewHistory/ReveiwHistory/PathSettingDlg.cpp +++ b/ReviewHistory/ReveiwHistory/PathSettingDlg.cpp @@ -27,6 +27,8 @@ void CPathSettingDlg::DoDataExchange(CDataExchange* pDX) { CDialogEx::DoDataExchange(pDX); + DDX_Control(pDX, IDC_COMBO_OFFSET_DIRECTION_X, m_comboDirectionX); + DDX_Control(pDX, IDC_COMBO_OFFSET_DIRECTION_Y, m_comboDirectionY); } @@ -44,6 +46,8 @@ BOOL CPathSettingDlg::Create(CWnd* pParentWnd) { return CDialogEx::Create(IDD, pParentWnd); + + } BOOL CPathSettingDlg::PreTranslateMessage(MSG* pMsg) @@ -218,6 +222,15 @@ INIWriteStr("Path", "Inspector", m_strInspectorPath, strFilePath); GetDlgItemText(IDC_EDIT_REVIEW_PATH, m_strReviewPath); INIWriteStr("Path", "Review", m_strReviewPath, strFilePath); + /*< LYW 20211018 - #3684 ADD Start >*/ + CString strTemp; + strTemp.Format(_T("%d"), m_comboDirectionX.GetCurSel()); + INIWriteStr("Path", "DirectionX", strTemp, strFilePath); + strTemp.Format(_T("%d"), m_comboDirectionY.GetCurSel()); + INIWriteStr("Path", "DirectionY", strTemp, strFilePath); + + /*< LYW 20211018 - #3684 ADD End >*/ + AfxMessageBox(_T("���옣 �릺�뿀�뒿�땲�떎"), MB_OK | MB_ICONWARNING); @@ -271,6 +284,12 @@ m_strInspectorPath = INIReadStr(strAppName, _T("Inspector"), strFilePath); m_strReviewPath = INIReadStr(strAppName, _T("Review"), strFilePath); + CString strTemp; + strTemp = INIReadStr(strAppName, _T("DirectionX"), strFilePath); + m_comboDirectionX.SetCurSel(_ttoi(strTemp)); + strTemp = INIReadStr(strAppName, _T("DirectionY"), strFilePath); + m_comboDirectionY.SetCurSel(_ttoi(strTemp)); + if (m_strAlignPath == "") { m_strAlignPath.Format(_T("D:\\ResultData\\Align\\")); @@ -294,4 +313,24 @@ SetDlgItemText(IDC_EDIT_REVIEW_PATH, m_strReviewPath); LOG(Dbg, _T("[PathSetting] Start Review Path Setting Load")); -} \ No newline at end of file +} + + +/*< LYW 20211018 - #3684 ADD Start >*/ +BOOL CPathSettingDlg::OnInitDialog() +{ + __super::OnInitDialog(); + + // TODO: �뿬湲곗뿉 異붽� 珥덇린�솕 �옉�뾽�쓣 異붽��빀�땲�떎. + m_comboDirectionX.AddString(_T("Nomal")); + m_comboDirectionX.AddString(_T("Reverse")); + m_comboDirectionY.AddString(_T("Nomal")); + m_comboDirectionY.AddString(_T("Reverse")); + + m_comboDirectionX.SetCurSel(0); + m_comboDirectionY.SetCurSel(0); + + return TRUE; // return TRUE unless you set the focus to a control + // �삁�쇅: OCX �냽�꽦 �럹�씠吏��뒗 FALSE瑜� 諛섑솚�빐�빞 �빀�땲�떎. +} +/*< LYW 20211018 - #3684 ADD End >*/ -- Gitblit v1.9.3