home *** CD-ROM | disk | FTP | other *** search
/ Mastering MFC Development / MMD.ISO / labs / c11 / lab03 / ex01 / ftpdlg.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  1997-02-20  |  1.3 KB  |  57 lines

  1. // FtpDlg.cpp : implementation file
  2. //
  3.  
  4. #include "stdafx.h"
  5. #include "afxinet.h"
  6. #include "ftp.h"
  7. #include "FtpDlg.h"
  8. #include "FtpGet.h"
  9.  
  10. #ifdef _DEBUG
  11. #define new DEBUG_NEW
  12. #undef THIS_FILE
  13. static char THIS_FILE[] = __FILE__;
  14. #endif
  15.  
  16. /////////////////////////////////////////////////////////////////////////////
  17. // CFtpDlg dialog
  18.  
  19.  
  20. CFtpDlg::CFtpDlg(CWnd* pParent /*=NULL*/)
  21.     : CDialog(CFtpDlg::IDD, pParent)
  22. {
  23.     //{{AFX_DATA_INIT(CFtpDlg)
  24.     m_strServer = _T("ftp.microsoft.com");
  25.     m_strFile = _T("i*.txt");
  26.     m_strPath = _T("\\developr\\vis*_?\\kb\\");
  27.     m_strRoot = _T("c:\\temp\\");
  28.     m_strGateway = _T("ftp-gw");
  29.     m_nCopyType = FC_NONE;
  30.  
  31.     //}}AFX_DATA_INIT
  32. }
  33.  
  34.  
  35. void CFtpDlg::DoDataExchange(CDataExchange* pDX)
  36. {
  37.     CDialog::DoDataExchange(pDX);
  38.     //{{AFX_DATA_MAP(CFtpDlg)
  39.     DDX_Text(pDX, IDC_EDIT_FILE, m_strFile);
  40.     DDX_Text(pDX, IDC_EDIT_PATH, m_strPath);
  41.     DDX_Text(pDX, IDC_EDIT_ROOT, m_strRoot);
  42.     DDX_Text(pDX, IDC_EDIT_SVR, m_strServer);
  43.     DDX_Text(pDX, IDC_EDIT_GW, m_strGateway);
  44.     DDX_Radio(pDX, IDC_RADIO_NONE, m_nCopyType);
  45.     //}}AFX_DATA_MAP
  46. }
  47.  
  48.  
  49. BEGIN_MESSAGE_MAP(CFtpDlg, CDialog)
  50.     //{{AFX_MSG_MAP(CFtpDlg)
  51.         // NOTE: the ClassWizard will add message map macros here
  52.     //}}AFX_MSG_MAP
  53. END_MESSAGE_MAP()
  54.  
  55. /////////////////////////////////////////////////////////////////////////////
  56. // CFtpDlg message handlers
  57.