76 lines
1.8 KiB
C++
76 lines
1.8 KiB
C++
// 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);
|
|
}
|