资源简介
里面有详细的注释,很适合新手看
可能在书写方面不规范,因为是以前初学VC的时候写的,将就下吧
代码片段和文件信息
// MainFrm.cpp : implementation of the CMainframe class
//
#include “stdafx.h“
#include “MFC_MoveLine.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_wndToolBar.CreateEx(this TBstyle_FLAT WS_CHILD | WS_VISIBLE | CBRS_TOP
| CBRS_GRIPPER | CBRS_TOOLTIPS | CBRS_FLYBY | CBRS_SIZE_DYNAMIC) ||
!m_wndToolBar.LoadToolBar(IDR_MAINframe))
{
TRACE0(“Failed to create toolbar\n“);
return -1; // fail to create
}
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
}
// TODO: Delete these three lines if you don‘t want the toolbar to
// be dockable
m_wndToolBar.EnableDocking(CBRS_ALIGN_ANY);
EnableDocking(CBRS_ALIGN_ANY);
DockControlBar(&m_wndToolBar);
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
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 2513 2009-09-15 23:53 单文档_画图程序\MainFrm.cpp
文件 1581 2009-09-15 23:53 单文档_画图程序\MainFrm.h
文件 32812 2009-12-02 14:47 单文档_画图程序\MFC_MoveLine.aps
文件 2376 2009-12-30 20:19 单文档_画图程序\MFC_MoveLine.clw
文件 4435 2009-09-15 23:56 单文档_画图程序\MFC_MoveLine.cpp
文件 4809 2009-09-16 02:09 单文档_画图程序\MFC_MoveLine.dsp
文件 549 2009-09-15 23:53 单文档_画图程序\MFC_MoveLine.dsw
文件 1422 2009-09-15 23:53 单文档_画图程序\MFC_MoveLine.h
文件 91136 2009-12-30 20:19 单文档_画图程序\MFC_MoveLine.ncb
文件 49664 2009-12-30 20:19 单文档_画图程序\MFC_MoveLine.opt
文件 258 2009-12-30 20:18 单文档_画图程序\MFC_MoveLine.plg
文件 11976 2009-09-16 01:49 单文档_画图程序\MFC_MoveLine.rc
文件 1862 2009-09-15 23:53 单文档_画图程序\MFC_MoveLineDoc.cpp
文件 1541 2009-09-15 23:53 单文档_画图程序\MFC_MoveLineDoc.h
文件 6986 2009-10-06 23:54 单文档_画图程序\MFC_MoveLineView.cpp
文件 2106 2009-09-16 00:52 单文档_画图程序\MFC_MoveLineView.h
文件 4455 2009-09-15 23:53 单文档_画图程序\ReadMe.txt
文件 1270 2009-09-16 01:49 单文档_画图程序\res\bitmap1.bmp
文件 1078 2009-09-15 23:53 单文档_画图程序\res\MFC_MoveLine.ico
文件 404 2009-09-15 23:53 单文档_画图程序\res\MFC_MoveLine.rc2
文件 1078 2009-09-15 23:53 单文档_画图程序\res\MFC_MoveLineDoc.ico
文件 1078 2009-09-15 23:53 单文档_画图程序\res\Toolbar.bmp
文件 689 2009-09-16 01:49 单文档_画图程序\resource.h
文件 214 2009-09-15 23:53 单文档_画图程序\StdAfx.cpp
文件 1054 2009-09-15 23:53 单文档_画图程序\StdAfx.h
目录 0 2010-03-13 00:33 单文档_画图程序\Debug
目录 0 2010-03-13 00:33 单文档_画图程序\res
目录 0 2010-03-13 00:33 单文档_画图程序
----------- --------- ---------- ----- ----
227346 28
............此处省略1个文件信息
相关资源
- 简单的MFC串口通讯 源代码
- MFC学生简单信息管理程序设计文档
- 语音识别MFCC特征提取matlab代码
- MFC单文档心电图模拟程序vc6.0
- VS2010使用MFC编写闹钟和定时关机程序
- MFC 贪吃蛇
- SDNU 面向对象程序设计及C++ MFC 期中作
- 远程文件--select模式
- MFC日志写入与读取
- Windows MFC排序演示过程
- c++/MFC CSocket仿QQ聊天软件,实现1对1聊
- C++PCM音频格式录音双缓存MFC版本
- mfc 实现图片的移动 火箭移动效果
- MFC中如何使用子控件向父控件发送自
- MFC基于TCP/IP协议的聊天室源代码 (继
- mfc高通滤波器
- MFC对EXCEL的操作:修改单元格格式,背
- MFC的一个很强大的LIstCtrl类很漂亮,类
- MFCC参数提取的matlab实现
- 基于udp的P2P聊天工具MFC实现
- 基于MFC的连接数据库的书店管理系统
- VS2013 MFC ODBC连接SQL SERVER数据库编程完
-
MFC ba
se64编码/解码工具 - mstcpip头文件
- 自己写的一个MFC画线程序,可以设置
- VS2012+MFC串口通信
- mfc模拟电梯运行程序
- MFC滚动条,方便学习使用
- vc++ 运用MFC实现基于AfxMessageBox的 自定
- 停车场管理系统MFC
评论
共有 条评论