-
大小: 68KB文件類型: .rar金幣: 2下載: 0 次發布日期: 2021-05-18
- 語言: C/C++
- 標簽:
資源簡介
使用VC6.0 MFC開發的基于對話框的VC++程序,實現了記事本的基本功能,通過派生出的crichedit和CDIALOG類,自己編寫了查找、替換等功能,
主要包括,新建、打開、保存、另存為、打印設置、打印、退出;具有判斷退出、新建、打開時對當前文檔是否保存等功能
具有撤銷、復制、粘貼、剪貼、刪除等基礎功能,通過派生類繪制了查找、替換對話框,實現了和window記事本同樣的功能。另外還包括右鍵快捷菜單功能,和主菜單一樣實時更新菜單可能狀態
利用MFC通用對話框,實現了字體設置功能;并且實現了查看工具欄和狀態欄的功能,由于時間有限部分功能尚未實現

代碼片段和文件信息
//?DareNotePad.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“DareNotePad.h“
#include?“DareNotePadDlg.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CDareNotePadApp
BEGIN_MESSAGE_MAP(CDareNotePadApp?CWinApp)
//{{AFX_MSG_MAP(CDareNotePadApp)
//?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()
/////////////////////////////////////////////////////////////////////////////
//?CDareNotePadApp?construction
CDareNotePadApp::CDareNotePadApp()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CDareNotePadApp?object
CDareNotePadApp?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CDareNotePadApp?initialization
BOOL?CDareNotePadApp::InitInstance()
{
AfxEnableControlContainer();
AfxInitRichEdit();
//?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.
CDareNotePadDlg?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;
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????1054??2011-11-03?12:31??StdAfx.h
?????文件??????12918??2011-11-06?19:33??res\aero_arrow.cur
?????文件???????1078??2011-11-03?19:26??res\DareNotePad.ico
?????文件????????403??2011-11-03?12:31??res\DareNotePad.rc2
?????文件???????1078??2011-11-16?18:48??res\Toolbar.bmp
?????文件????????358??2011-11-06?21:11??res\toolbar1.bmp
?????文件?????115712??2011-11-19?21:44??DareNotePad.ncb
?????文件??????59904??2011-11-19?21:44??DareNotePad.opt
?????文件???????4459??2011-11-19?21:43??DareNotePad.clw
?????文件??????46290??2011-11-19?15:06??DareNotePadDlg.cpp
?????文件???????2161??2011-11-19?14:08??DareNotePad.plg
?????文件??????58912??2011-11-17?13:28??DareNotePad.aps
?????文件??????13778??2011-11-17?13:28??DareNotePad.rc
?????文件???????5041??2011-11-16?20:47??DareNotePad.dsp
?????文件???????3754??2011-11-16?19:00??resource.fd
?????文件???????2888??2011-11-16?19:00??resource.h
?????文件???????3764??2011-11-16?18:48??DareNotePadDlg.h
?????文件???????7669??2011-11-13?14:08??MyRichEdit.cpp
?????文件???????3674??2011-11-13?13:44??ReadMe.txt
?????文件???????1877??2011-11-13?09:47??MyRichEdit.h
?????文件???????6165??2011-11-12?20:19??Replace.cpp
?????文件???????2714??2011-11-12?20:16??Replace.h
?????文件???????1981??2011-11-04?19:21??DareNotePad.cpp
?????文件????????545??2011-11-03?12:39??DareNotePad.dsw
?????文件???????1379??2011-11-03?12:31??DareNotePad.h
?????文件????????213??2011-11-03?12:31??StdAfx.cpp
?????目錄??????????0??2011-11-16?18:48??res
?????文件???????1210??2011-11-25?19:16??程序簡介.txt
-----------?---------??----------?-----??----
???????????????360979????????????????????28
............此處省略1個文件信息
- 上一篇:LZ77、LZ78對文件編譯碼
- 下一篇:多邊形拓撲關系算法C++程序
評論
共有 條評論