• 大小: 33KB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-05-18
  • 语言: C/C++
  • 标签: MFC  记事本  工具  

资源简介

MFC App向导生成,基于现成的edit类,适合MFC新手

资源截图

代码片段和文件信息

// LusEditor.cpp : Defines the class behaviors for the application.
//

#include “stdafx.h“
#include “LusEditor.h“

#include “MainFrm.h“
#include “LusEditorDoc.h“
#include “LusEditorView.h“

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CLusEditorApp

BEGIN_MESSAGE_MAP(CLusEditorApp CWinApp)
//{{AFX_MSG_MAP(CLusEditorApp)
ON_COMMAND(ID_APP_ABOUT OnAppAbout)
// NOTE - the ClassWizard will add and remove mapping macros here.
//    DO NOT EDIT what you see in these blocks of generated code!
//}}AFX_MSG_MAP
// Standard file based document commands
ON_COMMAND(ID_FILE_NEW CWinApp::OnFileNew)
ON_COMMAND(ID_FILE_OPEN CWinApp::OnFileOpen)
// Standard print setup command
ON_COMMAND(ID_FILE_PRINT_SETUP CWinApp::OnFilePrintSetup)
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CLusEditorApp construction

CLusEditorApp::CLusEditorApp()
{
// TODO: add construction code here
// Place all significant initialization in InitInstance
}

/////////////////////////////////////////////////////////////////////////////
// The one and only CLusEditorApp object

CLusEditorApp theApp;

/////////////////////////////////////////////////////////////////////////////
// CLusEditorApp initialization

BOOL CLusEditorApp::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

// Change the registry key under which our settings are stored.
// TODO: You should modify this string to be something appropriate
// such as the name of your company or organization.
SetRegistryKey(_T(“Local AppWizard-Generated Applications“));

LoadStdProfileSettings();  // Load standard INI file options (including MRU)

// Register the application‘s document templates.  Document templates
//  serve as the connection between documents frame windows and views.

CSingleDocTemplate* pDocTemplate;
pDocTemplate = new CSingleDocTemplate(
IDR_MAINframe
RUNTIME_CLASS(CLusEditorDoc)
RUNTIME_CLASS(CMainframe)       // main SDI frame window
RUNTIME_CLASS(CLusEditorView));
AddDocTemplate(pDocTemplate);

// Parse command line for standard shell commands DDE file open
CCommandLineInfo cmdInfo;
ParseCommandLine(cmdInfo);

// Dispatch commands specified on the command line
if (!ProcessShellCommand(cmdInfo))
return FALSE;

// The one and only window has been initialized so show and update it.
m_pMainWnd->ShowWindow(SW_SHOW);

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件     104802  2010-01-08 21:42  res\baidu_logo.bmp

     文件       1078  2010-01-09 10:32  res\LusEditor.ico

     文件        401  2010-01-06 18:19  res\LusEditor.rc2

     文件       1078  2010-01-09 10:31  res\LusEditorDoc.ico

     文件       1918  2010-01-08 22:39  res\Toolbar.bmp

     文件       3557  2010-02-19 15:18  LusEditor.clw

     文件       4263  2010-01-06 18:19  LusEditor.cpp

     文件       4948  2010-01-08 23:40  LusEditor.dsp

     文件        543  2010-01-06 18:25  LusEditor.dsw

     文件       1389  2010-01-06 18:19  LusEditor.h

     文件      15080  2010-01-09 10:32  LusEditor.rc

     文件        781  2010-01-09 09:12  LusEditor.reg

     文件       1878  2010-01-06 18:19  LusEditorDoc.cpp

     文件       1508  2010-01-06 18:19  LusEditorDoc.h

     文件       2988  2010-01-09 14:08  LusEditorView.cpp

     文件       1943  2010-01-06 18:19  LusEditorView.h

     文件       6311  2010-02-19 15:17  MainFrm.cpp

     文件       1947  2010-01-08 23:54  MainFrm.h

     文件       4383  2010-01-06 18:19  ReadMe.txt

     文件       1714  2010-01-08 23:54  resource.h

     文件       1346  2010-01-08 23:49  Searchdlg2.cpp

     文件       1235  2010-01-08 23:40  Searchdlg2.h

     文件       1368  2010-01-08 21:54  Searchdlg.cpp

     文件       1223  2010-01-08 21:44  Searchdlg.h

     文件        211  2010-01-06 18:19  StdAfx.cpp

     文件       1054  2010-01-06 18:19  StdAfx.h

     文件         16  2010-01-09 00:27  简明教程.txt

     文件         48  2010-01-09 10:44  软件说明.txt

     文件      35090  2010-01-09 09:46  协议.rtf

     文件        173  2010-01-09 09:09  作者主页.url

............此处省略4个文件信息

评论

共有 条评论