資源簡介
自己寫的MFC記事本程序,供大家參考,基本上所有的功能都有,打開,保存,另存為,打印設置,頁面設置,字體設置,剪切,復制,粘貼,全選,查找,替換...不完善的地方,大家接著練習..源碼可直接編譯通過..

代碼片段和文件信息
//?NoteBook.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“NoteBook.h“
#include?“NoteBookDlg.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CNoteBookApp
BEGIN_MESSAGE_MAP(CNoteBookApp?CWinApp)
//{{AFX_MSG_MAP(CNoteBookApp)
//?NOTE?-?the?ClassWizard?will?add?and?remove?mapping?macros?here.
//????DO?NOT?EDIT?what?you?see?in?these?blocks?of?generated?code!
//}}AFX_MSG
ON_COMMAND(ID_HELP?CWinApp::onhelp)
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
//?CNoteBookApp?construction
CNoteBookApp::CNoteBookApp()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CNoteBookApp?object
CNoteBookApp?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CNoteBookApp?initialization
BOOL?CNoteBookApp::InitInstance()
{
AfxEnableControlContainer();
//?Standard?initialization
//?If?you?are?not?using?these?features?and?wish?to?reduce?the?size
//??of?your?final?executable?you?should?remove?from?the?following
//??the?specific?initialization?routines?you?do?not?need.
#ifdef?_AFXDLL
Enable3dControls(); //?Call?this?when?using?MFC?in?a?shared?DLL
#else
Enable3dControlsStatic(); //?Call?this?when?linking?to?MFC?statically
#endif
CNoteBookDlg?dlg;
m_pMainWnd?=?&dlg;
int?nResponse?=?dlg.DoModal();
if?(nResponse?==?IDOK)
{
//?TODO:?Place?code?here?to?handle?when?the?dialog?is
//??dismissed?with?OK
}
else?if?(nResponse?==?IDCANCEL)
{
//?TODO:?Place?code?here?to?handle?when?the?dialog?is
//??dismissed?with?Cancel
}
//?Since?the?dialog?has?been?closed?return?FALSE?so?that?we?exit?the
//??application?rather?than?start?the?application‘s?message?pump.
return?FALSE;
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件?????123188??2013-01-17?16:22??NoteBook\NoteBook.aps
?????文件???????1964??2013-01-17?16:59??NoteBook\NoteBook.clw
?????文件???????2091??2013-01-16?16:05??NoteBook\NoteBook.cpp
?????文件???????4466??2013-01-17?10:01??NoteBook\NoteBook.dsp
?????文件????????524??2013-01-16?16:05??NoteBook\NoteBook.dsw
?????文件???????1346??2013-01-16?16:05??NoteBook\NoteBook.h
?????文件??????66560??2013-01-17?16:59??NoteBook\NoteBook.ncb
?????文件??????54784??2013-01-17?16:59??NoteBook\NoteBook.opt
?????文件???????1197??2013-01-17?15:44??NoteBook\NoteBook.plg
?????文件???????7695??2013-01-17?10:47??NoteBook\NoteBook.rc
?????文件??????11999??2013-01-17?15:44??NoteBook\NoteBookDlg.cpp
?????文件???????2070??2013-01-17?10:50??NoteBook\NoteBookDlg.h
?????文件???????3615??2013-01-16?16:05??NoteBook\ReadMe.txt
?????文件???????1759??2013-01-17?10:47??NoteBook\Resource.h
?????文件????????210??2013-01-16?16:05??NoteBook\StdAfx.cpp
?????文件???????1054??2013-01-16?16:05??NoteBook\StdAfx.h
?????文件????????695??2013-01-16?17:21??NoteBook\res\default1.bin
?????文件???????1078??2013-01-17?09:37??NoteBook\res\icon1.ico
?????文件???????4150??2013-01-17?09:51??NoteBook\res\NoteBook.bmp
?????文件???????1078??2011-09-01?22:20??NoteBook\res\NoteBook.ico
?????文件????????400??2013-01-16?16:05??NoteBook\res\NoteBook.rc2
?????文件??????94904??2013-01-17?09:55??NoteBook\res\ti
?????文件????4826112??2013-01-17?15:44??NoteBook\Debug\NoteBook.bsc
?????文件?????237657??2013-01-17?15:44??NoteBook\Debug\NoteBook.exe
?????目錄??????????0??2013-01-20?13:17??NoteBook\res
?????目錄??????????0??2013-01-20?13:17??NoteBook\Debug
?????目錄??????????0??2013-01-20?13:17??NoteBook
-----------?---------??----------?-----??----
??????????????5450596????????????????????27
............此處省略0個文件信息
評論
共有 條評論