资源简介
这是一个简易图形编辑器,可实现一些绘图的简单功能,可绘矩形,直线,椭圆,随手画线,橡皮擦等功能
代码片段和文件信息
// homework.cpp : Defines the class behaviors for the application.
//
#include “stdafx.h“
#include “homework.h“
#include “MainFrm.h“
#include “homeworkDoc.h“
#include “homeworkView.h“
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CHomeworkApp
BEGIN_MESSAGE_MAP(CHomeworkApp CWinApp)
//{{AFX_MSG_MAP(CHomeworkApp)
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()
/////////////////////////////////////////////////////////////////////////////
// CHomeworkApp construction
CHomeworkApp::CHomeworkApp()
{
// TODO: add construction code here
// Place all significant initialization in InitInstance
}
/////////////////////////////////////////////////////////////////////////////
// The one and only CHomeworkApp object
CHomeworkApp theApp;
/////////////////////////////////////////////////////////////////////////////
// CHomeworkApp initialization
BOOL CHomeworkApp::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(CHomeworkDoc)
RUNTIME_CLASS(CMainframe) // main SDI frame window
RUNTIME_CLASS(CHomeworkView));
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);
m_pMainWnd->Up
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 326 2008-11-22 19:47 homework\arrow.cur
文件 326 2008-11-22 19:47 homework\arrowcop.cur
文件 127050 2009-08-09 20:59 homework\Debug\homework.exe
文件 2472 2009-08-09 21:01 homework\homework.clw
文件 4245 2008-11-22 18:30 homework\homework.cpp
文件 4920 2008-11-22 19:50 homework\homework.dsp
文件 524 2008-11-22 18:30 homework\homework.dsw
文件 1378 2008-11-22 18:30 homework\homework.h
文件 13041 2009-08-09 20:58 homework\homework.rc
文件 1782 2008-11-22 18:30 homework\homeworkDoc.cpp
文件 1497 2008-11-22 18:30 homework\homeworkDoc.h
文件 8480 2009-08-09 20:46 homework\homeworkView.cpp
文件 2686 2008-11-22 19:55 homework\homeworkView.h
文件 2509 2008-11-22 18:30 homework\MainFrm.cpp
文件 1581 2008-11-22 18:30 homework\MainFrm.h
文件 326 2009-08-09 20:50 homework\nodrop.cur
文件 326 2008-11-22 19:47 homework\res\cursor1.cur
文件 1078 2008-11-22 18:30 homework\res\homework.ico
文件 400 2008-11-22 18:30 homework\res\homework.rc2
文件 1078 2008-11-22 18:30 homework\res\homeworkDoc.ico
文件 326 2008-11-22 19:47 homework\res\nodrop1.cur
文件 1078 2008-11-22 18:30 homework\res\Toolbar.bmp
文件 1102 2009-08-09 20:58 homework\resource.h
文件 210 2008-11-22 18:30 homework\StdAfx.cpp
文件 1054 2008-11-22 18:30 homework\StdAfx.h
目录 0 2009-08-09 21:02 homework\Debug
目录 0 2009-08-09 20:59 homework\res
目录 0 2009-08-09 21:02 homework
----------- --------- ---------- ----- ----
179795 28
............此处省略1个文件信息
- 上一篇:西南交大程序设计综合实验源代码c语言版
- 下一篇:后缀表达式求值
相关资源
- 第三方串口类
- MFCJunior U盘SD卡寿命测试工具
- 控制台嵌入MFC
- VC++ 串口实现双机互联 包含视窗加代
- Visual C++ MFC Web 浏览器
- 文件传输,用MFC实现
- MFC漂亮的进度条
- VC++ MFC 如何用 CZip CUnzip类压缩解压缩
- MFC添加进度条
- OpenGL纹理贴图源程序.rar
- MFC图元的组合,拆分,移动源代码
- Vc++6.0MFC入门教程,很好的资源。
- VC++6.0 MFC 超简易计算器
- MFC开发的与服务器通讯程序
- 用MFC画直线椭圆矩型可选择线条颜色
- 多个定时器的 Timer VC++
- MFC交通灯控制车辆运行的模拟程序
- DES加密算法MFC实现
- MFC 之 TabCtrl
- DES加密和RSA加密程序mfc源代码
- 实现三维坐标变换、投影变换,C++实
- VC++铰链四杆机构运动仿真编程-
- MFC实现文件传输
- 生命游戏 mfc版本 环境vs2008
- MFC CComboBox 实现自动补全
- MFC写的棋盘,可以保存坐标数据
- vc++读取shp文件源码
- MFC 菜鸟教程……适合初学者
- MFCdownload
- VC++MFC编程
评论
共有 条评论