2002-12-02 05:44:00 +00:00
|
|
|
// SendFileDialog.cpp : implementation file
|
|
|
|
|
//
|
|
|
|
|
|
|
|
|
|
#include "stdafx.h"
|
|
|
|
|
#include "smlobby.h"
|
|
|
|
|
#include "SendFileDialog.h"
|
|
|
|
|
#include "irc.h"
|
|
|
|
|
|
|
|
|
|
#ifdef _DEBUG
|
|
|
|
|
#define new DEBUG_NEW
|
|
|
|
|
#undef THIS_FILE
|
|
|
|
|
static char THIS_FILE[] = __FILE__;
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
// CSendFileDialog dialog
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
CSendFileDialog::CSendFileDialog(CWnd* pParent /*=NULL*/)
|
|
|
|
|
: CDialog(CSendFileDialog::IDD, pParent)
|
|
|
|
|
{
|
|
|
|
|
//{{AFX_DATA_INIT(CSendFileDialog)
|
|
|
|
|
m_BytesSent = _T("");
|
|
|
|
|
m_Filesize = _T("");
|
|
|
|
|
m_FolderName = _T("");
|
|
|
|
|
m_FileName = _T("");
|
|
|
|
|
m_RecvrName = _T("");
|
|
|
|
|
m_TimeLeft = _T("");
|
|
|
|
|
m_XferRate = _T("");
|
|
|
|
|
m_XferStatus = _T("");
|
|
|
|
|
m_SentRecvd = _T("");
|
|
|
|
|
m_ToFrom = _T("");
|
|
|
|
|
//}}AFX_DATA_INIT
|
|
|
|
|
|
2002-12-08 19:40:18 +00:00
|
|
|
m_bIsCanceled = false;
|
2002-12-02 05:44:00 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void CSendFileDialog::DoDataExchange(CDataExchange* pDX)
|
|
|
|
|
{
|
|
|
|
|
CDialog::DoDataExchange(pDX);
|
|
|
|
|
//{{AFX_DATA_MAP(CSendFileDialog)
|
|
|
|
|
DDX_Control(pDX, IDC_PROGRESS1, m_ProgressFile);
|
|
|
|
|
DDX_Text(pDX, IDC_BYTESSENT, m_BytesSent);
|
|
|
|
|
DDX_Text(pDX, IDC_FILESIZE, m_Filesize);
|
|
|
|
|
DDX_Text(pDX, IDC_FOLDERNAME, m_FolderName);
|
|
|
|
|
DDX_Text(pDX, IDC_FILENAME, m_FileName);
|
|
|
|
|
DDX_Text(pDX, IDC_RECVRNAME, m_RecvrName);
|
|
|
|
|
DDX_Text(pDX, IDC_TIMELEFT, m_TimeLeft);
|
|
|
|
|
DDX_Text(pDX, IDC_XFERRATE, m_XferRate);
|
|
|
|
|
DDX_Text(pDX, IDC_XFERSTATUS, m_XferStatus);
|
|
|
|
|
DDX_Text(pDX, IDC_SENTRECVD, m_SentRecvd);
|
|
|
|
|
DDX_Text(pDX, IDC_TOFROM, m_ToFrom);
|
|
|
|
|
//}}AFX_DATA_MAP
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
BEGIN_MESSAGE_MAP(CSendFileDialog, CDialog)
|
|
|
|
|
//{{AFX_MSG_MAP(CSendFileDialog)
|
|
|
|
|
//}}AFX_MSG_MAP
|
|
|
|
|
END_MESSAGE_MAP()
|
|
|
|
|
|
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
// CSendFileDialog message handlers
|
|
|
|
|
|
|
|
|
|
void CSendFileDialog::OnCancel()
|
|
|
|
|
{
|
2002-12-08 19:40:18 +00:00
|
|
|
//Thread is going to check up on us to see if it's time to bail
|
|
|
|
|
m_bIsCanceled = true;
|
2002-12-02 05:44:00 +00:00
|
|
|
|
|
|
|
|
CDialog::OnCancel();
|
|
|
|
|
}
|