// ResultDlg.cpp : ±¸Çö ÆÄÀÏÀÔ´Ï´Ù. // #include "stdafx.h" #include "ConsoleTransfer.h" #include "ResultDlg.h" #include ".\resultdlg.h" // CResultDlg ´ëÈ­ »óÀÚÀÔ´Ï´Ù. IMPLEMENT_DYNAMIC(CResultDlg, CDialog) CResultDlg::CResultDlg(CWnd* pParent /*=NULL*/) : CDialog(CResultDlg::IDD, pParent) , m_strResult(_T("")) , m_strFailedFiles(_T("")) { m_bAlreadyShow = false; } CResultDlg::~CResultDlg() { } void CResultDlg::DoDataExchange(CDataExchange* pDX) { CDialog::DoDataExchange(pDX); DDX_Text(pDX, IDC_RESULT_STATIC, m_strResult); DDX_Text(pDX, IDC_FAILED_FILES_EDIT, m_strFailedFiles); } BEGIN_MESSAGE_MAP(CResultDlg, CDialog) END_MESSAGE_MAP() ////////////////////////////////////////////////////////////////////////////////////////////// /// Attributes ////////////////////////////////////////////////////////////////////////////////////////////// void CResultDlg::SetResult(INT nTotalCount, INT nFailedCount, CString strFailedFiles) { m_strResult.Format(_T("ÃÑ %ld°³ ¾÷·Îµå, ¼º°ø : %ld°³, ½ÇÆÐ : %ld°³"), nTotalCount, nTotalCount - nFailedCount, nFailedCount); m_strFailedFiles = strFailedFiles; m_bAlreadyShow = true; } // CResultDlg ¸Þ½ÃÁö 󸮱âÀÔ´Ï´Ù. BOOL CResultDlg::OnInitDialog() { CDialog::OnInitDialog(); // TODO: ¿©±â¿¡ Ãß°¡ ÃʱâÈ­ ÀÛ¾÷À» Ãß°¡ÇÕ´Ï´Ù. UpdateData(FALSE); return TRUE; // return TRUE unless you set the focus to a control // ¿¹¿Ü: OCX ¼Ó¼º ÆäÀÌÁö´Â FALSE¸¦ ¹ÝÈ¯ÇØ¾ß ÇÕ´Ï´Ù. } void CResultDlg::OnOK() { // TODO: ¿©±â¿¡ Ư¼öÈ­µÈ Äڵ带 Ãß°¡ ¹×/¶Ç´Â ±âº» Ŭ·¡½º¸¦ È£ÃâÇÕ´Ï´Ù. CDialog::OnOK(); GetParent()->PostMessage(WM_CLOSE); } void CResultDlg::OnCancel() { // TODO: ¿©±â¿¡ Ư¼öÈ­µÈ Äڵ带 Ãß°¡ ¹×/¶Ç´Â ±âº» Ŭ·¡½º¸¦ È£ÃâÇÕ´Ï´Ù. CDialog::OnCancel(); GetParent()->PostMessage(WM_CLOSE); }