資源簡介
期末作業,聽說mfc現在已經過時了,但是老師還是叫我們用mfc 做

代碼片段和文件信息
//?AddUserInfoDlg.cpp?:?implementation?file
//
#include?“stdafx.h“
#include?“ftpserver.h“
#include?“AddUserInfoDlg.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CAddUserInfoDlg?dialog
CAddUserInfoDlg::CAddUserInfoDlg(CWnd*?pParent?/*=NULL*/)
:?CDialog(CAddUserInfoDlg::IDD?pParent)
{
//{{AFX_DATA_INIT(CAddUserInfoDlg)
m_strPath?=?_T(““);
m_bAllowCreateDirectory?=?FALSE;
m_bAllowDelete?=?FALSE;
m_bAllowDownload?=?FALSE;
m_bAllowRename?=?FALSE;
m_bAllowUpload?=?FALSE;
m_strUserName?=?_T(““);
m_strUserPass?=?_T(““);
m_strUserPassAgain?=?_T(““);
//}}AFX_DATA_INIT
}
void?CAddUserInfoDlg::DoDataExchange(CDataExchange*?pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CAddUserInfoDlg)
DDX_Text(pDX?IDC_PATH?m_strPath);
DDX_Check(pDX?IDC_CREATE_DIR?m_bAllowCreateDirectory);
DDX_Check(pDX?IDC_DELETE?m_bAllowDelete);
DDX_Check(pDX?IDC_DOWNLOAD?m_bAllowDownload);
DDX_Check(pDX?IDC_RENAME?m_bAllowRename);
DDX_Check(pDX?IDC_UPLOAD?m_bAllowUpload);
DDX_Text(pDX?IDC_EDIT_USERNAME?m_strUserName);
DDX_Text(pDX?IDC_EDIT_USERPASS?m_strUserPass);
DDX_Text(pDX?IDC_EDIT_USERPASSAGAIN?m_strUserPassAgain);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CAddUserInfoDlg?CDialog)
//{{AFX_MSG_MAP(CAddUserInfoDlg)
ON_BN_CLICKED(IDC_BROWSE?OnBrowse)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
//?CAddUserInfoDlg?message?handlers
void?CAddUserInfoDlg::OnBrowse()?
{
CString?strDir?=?BrowseForFolder(m_hWnd?“選擇目錄:“?BIF_RETURNONLYFSDIRS);
if?(!strDir.IsEmpty())
{
//m_strPath?=?strDir;
//UpdateData(FALSE);//剛開始是UpdateData(FALSE)點擊選擇文件目錄時選擇目錄后會刷新各個控件中的數據
//但是不刷新選擇目錄后又不會顯示出來!
GetDlgItem(IDC_PATH)->SetWindowText(strDir);//還是使用這種方法靠譜!
}
}
BOOL?CAddUserInfoDlg::OnInitDialog()?
{
CDialog::OnInitDialog();
if?(!m_strtitle.IsEmpty())
SetWindowText(m_strtitle);
return?TRUE;??//?return?TRUE?unless?you?set?the?focus?to?a?control
??????????????//?EXCEPTION:?OCX?Property?Pages?should?return?FALSE
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????2302??2013-12-30?12:12??FTPServer\AddUserInfoDlg.cpp
?????文件???????1538??2013-12-30?12:12??FTPServer\AddUserInfoDlg.h
?????文件??????17846??2017-06-15?21:30??FTPServer\ApplicationDlg.cpp
?????文件???????2863??2017-06-15?21:07??FTPServer\ApplicationDlg.h
?????文件???????3820??2017-03-02?09:33??FTPServer\ColorListBox.cpp
?????文件???????1392??2013-09-08?05:06??FTPServer\ColorListBox.h
?????文件???????4761??2017-03-01?10:43??FTPServer\ConfigurationPage.cpp
?????文件???????1475??2017-03-01?10:41??FTPServer\ConfigurationPage.h
?????文件??????23873??2017-03-02?10:02??FTPServer\ConnectSocket.cpp
?????文件???????2340??2013-12-29?08:43??FTPServer\ConnectSocket.h
?????文件???????4230??2013-12-30?13:05??FTPServer\ConnectThread.cpp
?????文件???????1693??2013-12-30?13:06??FTPServer\ConnectThread.h
?????文件??????12731??2013-12-30?14:08??FTPServer\DataSocket.cpp
?????文件???????2052??2013-12-29?08:27??FTPServer\DataSocket.h
?????文件??????18793??2017-06-15?20:57??FTPServer\Debug\AddUserInfoDlg.obj
?????文件??????????0??2017-06-15?20:57??FTPServer\Debug\AddUserInfoDlg.sbr
?????文件??????90267??2017-06-15?21:30??FTPServer\Debug\ApplicationDlg.obj
?????文件??????????0??2017-06-15?21:30??FTPServer\Debug\ApplicationDlg.sbr
?????文件??????16490??2017-06-15?20:57??FTPServer\Debug\ColorListBox.obj
?????文件??????????0??2017-06-15?20:57??FTPServer\Debug\ColorListBox.sbr
?????文件??????25786??2017-06-15?20:57??FTPServer\Debug\ConfigurationPage.obj
?????文件??????????0??2017-06-15?20:57??FTPServer\Debug\ConfigurationPage.sbr
?????文件??????76203??2017-06-15?20:57??FTPServer\Debug\ConnectSocket.obj
?????文件??????????0??2017-06-15?20:57??FTPServer\Debug\ConnectSocket.sbr
?????文件??????23318??2017-06-15?20:57??FTPServer\Debug\ConnectThread.obj
?????文件??????????0??2017-06-15?20:57??FTPServer\Debug\ConnectThread.sbr
?????文件??????31058??2017-06-15?20:57??FTPServer\Debug\DataSocket.obj
?????文件??????????0??2017-06-15?20:57??FTPServer\Debug\DataSocket.sbr
?????文件???????9183??2017-06-15?20:57??FTPServer\Debug\FTPEventSink.obj
?????文件??????????0??2017-06-15?20:57??FTPServer\Debug\FTPEventSink.sbr
............此處省略75個文件信息
評論
共有 條評論