// DialExpDiagnosis.cpp : implementation file // #include "stdafx.h" #include "geomative.h" #include "DialExpDiagnosis.h" #include "FileOperTools.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif ///////////////////////////////////////////////////////////////////////////// // CDialExpDiagnosis dialog CDialExpDiagnosis::CDialExpDiagnosis(CWnd* pParent /*=NULL*/) : CDialog(CDialExpDiagnosis::IDD, pParent) { //{{AFX_DATA_INIT(CDialExpDiagnosis) // NOTE: the ClassWizard will add member initialization here //}}AFX_DATA_INIT } void CDialExpDiagnosis::DoDataExchange(CDataExchange* pDX) { CDialog::DoDataExchange(pDX); //{{AFX_DATA_MAP(CDialExpDiagnosis) // NOTE: the ClassWizard will add DDX and DDV calls here //}}AFX_DATA_MAP } BEGIN_MESSAGE_MAP(CDialExpDiagnosis, CDialog) //{{AFX_MSG_MAP(CDialExpDiagnosis) ON_BN_CLICKED(IDC_BUTTON_BROWSE, OnButtonBrowse) //}}AFX_MSG_MAP END_MESSAGE_MAP() ///////////////////////////////////////////////////////////////////////////// // CDialExpDiagnosis message handlers BOOL CDialExpDiagnosis::OnInitDialog() { CDialog::OnInitDialog(); // TODO: Add extra initialization here GetDlgItem(IDC_EDIT_FILE_PATH)->SetWindowText(m_strFilePath); return TRUE; // return TRUE unless you set the focus to a control // EXCEPTION: OCX Property Pages should return FALSE } void CDialExpDiagnosis::OnButtonBrowse() { // TODO: Add your control notification handler code here CString strFilePath = CFileOperTools::GetInstance()->GetDstFilePathFolder(); if (!strFilePath.IsEmpty()) { m_strFilePath = strFilePath; GetDlgItem(IDC_EDIT_FILE_PATH)->SetWindowText(m_strFilePath); } }