SetupDlg.cpp
资源名称:myftp.zip [点击查看]
上传用户:kkaqas
上传日期:2007-01-07
资源大小:38k
文件大小:2k
源码类别:
Ftp客户端
开发平台:
Visual C++
- // SetupDlg.cpp : implementation file
- //
- #include "stdafx.h"
- #include "myftp.h"
- #include "SetupDlg.h"
- #include "extern.h"
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
- /////////////////////////////////////////////////////////////////////////////
- // CSetupDlg dialog
- CSetupDlg::CSetupDlg(CWnd* pParent /*=NULL*/)
- : CDialog(CSetupDlg::IDD, pParent)
- {
- //{{AFX_DATA_INIT(CSetupDlg)
- // NOTE: the ClassWizard will add member initialization here
- //}}AFX_DATA_INIT
- }
- void CSetupDlg::DoDataExchange(CDataExchange* pDX)
- {
- CDialog::DoDataExchange(pDX);
- //{{AFX_DATA_MAP(CSetupDlg)
- // NOTE: the ClassWizard will add DDX and DDV calls here
- //}}AFX_DATA_MAP
- }
- BEGIN_MESSAGE_MAP(CSetupDlg, CDialog)
- //{{AFX_MSG_MAP(CSetupDlg)
- //}}AFX_MSG_MAP
- END_MESSAGE_MAP()
- /////////////////////////////////////////////////////////////////////////////
- // CSetupDlg message handlers
- void CSetupDlg::OnOK()
- {
- g_max_file_size =GetDlgItemInt(ID_MAX_FILE_SIZE);
- g_max_send_timeout =GetDlgItemInt(ID_MAX_SEND_TIMEOUT);
- g_max_recv_timeout =GetDlgItemInt(ID_MAX_RECV_TIMEOUT);
- g_max_retry =GetDlgItemInt(ID_MAX_RETRY);
- g_max_reconnect =GetDlgItemInt(ID_MAX_RECONNECT);
- CDialog::OnOK();
- }
- BOOL CSetupDlg::OnInitDialog()
- {
- CDialog::OnInitDialog();
- SetDlgItemInt(ID_MAX_FILE_SIZE, g_max_file_size);
- SetDlgItemInt(ID_MAX_SEND_TIMEOUT, g_max_send_timeout);
- SetDlgItemInt(ID_MAX_RECV_TIMEOUT, g_max_recv_timeout);
- SetDlgItemInt(ID_MAX_RETRY, g_max_retry);
- SetDlgItemInt(ID_MAX_RECONNECT, g_max_reconnect);
- return TRUE; // return TRUE unless you set the focus to a control
- // EXCEPTION: OCX Property Pages should return FALSE
- }