資源簡介
MFC簡單制作通訊錄,有標注有注釋,初學MFC會有很大的幫助

代碼片段和文件信息
//?InputDLG.cpp?:?implementation?file
//
#include?“stdafx.h“
#include?“TXL.h“
#include?“InputDLG.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CInputDLG?dialog
CInputDLG::CInputDLG(CWnd*?pParent?/*=NULL*/)
:?CDialog(CInputDLG::IDD?pParent)
{
//{{AFX_DATA_INIT(CInputDLG)
m_Email?=?_T(““);
m_Name?=?_T(““);
m_Phone?=?_T(““);
//}}AFX_DATA_INIT
}
void?CInputDLG::DoDataExchange(CDataExchange*?pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CInputDLG)
DDX_Text(pDX?IDC_EDIT_EMAIL?m_Email);
DDX_Text(pDX?IDC_EDIT_NAME?m_Name);
DDX_Text(pDX?IDC_EDIT_PHONE?m_Phone);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CInputDLG?CDialog)
//{{AFX_MSG_MAP(CInputDLG)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
//?CInputDLG?message?handlers
void?CInputDLG::OnOK()?
{
//?TODO:?Add?extra?validation?here
UpdateData(true);
GetDlgItem(IDC_EDIT_NAME)->SetFocus();
if(!m_Email.Find(‘@‘))
{
MessageBox(“郵箱輸入不正確,請重新輸入“);
GetDlgItem(IDC_EDIT_EMAIL)->SetFocus();
}
CDialog::OnOK();
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件?????????86??2015-07-13?08:18??TXL\book.txt
?????文件??????14249??2015-07-10?21:53??TXL\Debug\InputDLG.obj
?????文件?????105381??2015-07-10?21:35??TXL\Debug\StdAfx.obj
?????文件?????110633??2015-07-13?09:01??TXL\Debug\TXL.exe
?????文件?????286272??2015-07-13?09:01??TXL\Debug\TXL.ilk
?????文件??????13429??2015-07-11?07:34??TXL\Debug\TXL.obj
?????文件????5493548??2015-07-10?21:35??TXL\Debug\TXL.pch
?????文件?????418816??2015-07-13?09:01??TXL\Debug\TXL.pdb
?????文件???????3024??2015-07-10?21:42??TXL\Debug\TXL.res
?????文件??????40141??2015-07-13?09:01??TXL\Debug\TXLDlg.obj
?????文件?????230400??2015-07-13?09:01??TXL\Debug\vc60.idb
?????文件?????380928??2015-07-13?09:01??TXL\Debug\vc60.pdb
?????文件???????1277??2015-07-10?21:53??TXL\InputDLG.cpp
?????文件???????1204??2015-07-10?21:49??TXL\InputDLG.h
?????文件???????3525??2015-07-10?21:28??TXL\ReadMe.txt
?????文件???????1078??2015-07-10?21:28??TXL\res\TXL.ico
?????文件????????395??2015-07-10?21:28??TXL\res\TXL.rc2
?????文件???????1094??2015-07-10?21:42??TXL\resource.h
?????文件????????205??2015-07-10?21:28??TXL\StdAfx.cpp
?????文件???????1054??2015-07-10?21:28??TXL\StdAfx.h
?????文件??????36204??2015-07-10?21:42??TXL\TXL.APS
?????文件???????1861??2015-07-13?09:04??TXL\TXL.clw
?????文件???????2021??2015-07-10?21:28??TXL\TXL.cpp
?????文件???????4233??2015-07-10?21:44??TXL\TXL.dsp
?????文件????????529??2015-07-10?21:44??TXL\TXL.dsw
?????文件???????1291??2015-07-10?21:28??TXL\TXL.h
?????文件??????58368??2015-07-13?09:04??TXL\TXL.ncb
?????文件??????48640??2015-07-13?09:04??TXL\TXL.opt
?????文件????????858??2015-07-13?09:01??TXL\TXL.plg
?????文件???????6310??2015-07-10?21:42??TXL\TXL.rc
............此處省略8個文件信息
- 上一篇:多邊形合并c# c++
- 下一篇:Huffman編碼MFC版本
評論
共有 條評論