资源简介
VC++记事本源程序完整版 ,有很全的功能,适合初学者晋升用。
代码片段和文件信息
// MainFrm.cpp : implementation of the CMainframe class
//
#include “stdafx.h“
#include “ZlNotePad.h“
#include “MainFrm.h“
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CMainframe
IMPLEMENT_DYNCREATE(CMainframe CframeWnd)
BEGIN_MESSAGE_MAP(CMainframe CframeWnd)
//{{AFX_MSG_MAP(CMainframe)
// NOTE - the ClassWizard will add and remove mapping macros here.
// DO NOT EDIT what you see in these blocks of generated code !
ON_WM_CREATE()
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
static UINT indicators[] =
{
ID_SEPARATOR // status line indicator
ID_INDICATOR_CAPS
ID_INDICATOR_NUM
ID_INDICATOR_SCRL
};
/////////////////////////////////////////////////////////////////////////////
// CMainframe construction/destruction
CMainframe::CMainframe()
{
// TODO: add member initialization code here
}
CMainframe::~CMainframe()
{
}
int CMainframe::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
if (CframeWnd::OnCreate(lpCreateStruct) == -1)
return -1;
if (!m_wndStatusBar.Create(this) ||
!m_wndStatusBar.SetIndicators(indicators
sizeof(indicators)/sizeof(UINT)))
{
TRACE0(“Failed to create status bar\n“);
return -1; // fail to create
}
return 0;
}
BOOL CMainframe::PreCreateWindow(CREATESTRUCT& cs)
{
if( !CframeWnd::PreCreateWindow(cs) )
return FALSE;
// TODO: Modify the Window class or styles here by modifying
// the CREATESTRUCT cs
return TRUE;
}
/////////////////////////////////////////////////////////////////////////////
// CMainframe diagnostics
#ifdef _DEBUG
void CMainframe::AssertValid() const
{
CframeWnd::AssertValid();
}
void CMainframe::Dump(CDumpContext& dc) const
{
CframeWnd::Dump(dc);
}
#endif //_DEBUG
/////////////////////////////////////////////////////////////////////////////
// CMainframe message handlers
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2010-12-02 22:35 ZlNotePad\
目录 0 2010-12-02 22:35 ZlNotePad\Debug\
文件 18398 2010-12-02 22:35 ZlNotePad\Debug\MainFrm.obj
文件 105444 2010-12-02 22:35 ZlNotePad\Debug\StdAfx.obj
文件 205824 2010-12-02 22:35 ZlNotePad\Debug\vc60.idb
文件 364544 2010-12-02 22:35 ZlNotePad\Debug\vc60.pdb
文件 118838 2010-12-02 22:35 ZlNotePad\Debug\ZlNotePad.exe
文件 326184 2010-12-02 22:35 ZlNotePad\Debug\ZlNotePad.ilk
文件 23138 2010-12-02 22:35 ZlNotePad\Debug\ZlNotePad.obj
文件 5507044 2010-12-02 22:35 ZlNotePad\Debug\ZlNotePad.pch
文件 336896 2010-12-02 22:35 ZlNotePad\Debug\ZlNotePad.pdb
文件 6536 2010-12-02 22:35 ZlNotePad\Debug\ZlNotePad.res
文件 14846 2010-12-02 22:35 ZlNotePad\Debug\ZlNotePadDoc.obj
文件 28997 2010-12-02 22:35 ZlNotePad\Debug\ZlNotePadView.obj
文件 2022 2010-12-02 13:14 ZlNotePad\MainFrm.cpp
文件 1553 2010-12-02 13:14 ZlNotePad\MainFrm.h
文件 4358 2010-12-02 13:14 ZlNotePad\ReadMe.txt
目录 0 2010-12-02 13:14 ZlNotePad\res\
文件 831 2010-12-02 13:53 ZlNotePad\resource.h
文件 1078 2010-12-02 13:14 ZlNotePad\res\ZlNotePad.ico
文件 401 2010-12-02 13:14 ZlNotePad\res\ZlNotePad.rc2
文件 1078 2010-12-02 13:14 ZlNotePad\res\ZlNotePadDoc.ico
文件 211 2010-12-02 13:14 ZlNotePad\StdAfx.cpp
文件 1054 2010-12-02 13:14 ZlNotePad\StdAfx.h
文件 42864 2010-12-02 17:03 ZlNotePad\ZlNotePad.aps
文件 2479 2010-12-02 22:35 ZlNotePad\ZlNotePad.clw
文件 4409 2010-12-02 13:14 ZlNotePad\ZlNotePad.cpp
文件 4616 2010-12-02 13:14 ZlNotePad\ZlNotePad.dsp
文件 543 2010-12-02 13:14 ZlNotePad\ZlNotePad.dsw
文件 1389 2010-12-02 13:14 ZlNotePad\ZlNotePad.h
文件 58368 2010-12-02 22:35 ZlNotePad\ZlNotePad.ncb
............此处省略8个文件信息
- 上一篇:MFC基于对话框GDI+简单绘图
- 下一篇:基于opengl粒子系统实现喷泉的模拟
评论
共有 条评论