资源简介
使用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++程序
评论
共有 条评论