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

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