资源简介
MFC画图板,可以画一些基本图形,如直线,椭圆,扇形,矩形,弦形,三角形。
可以保存为BMP的文件。
代码片段和文件信息
// Ex_DrawBoard_WPF.cpp : Defines the class behaviors for the application.
//
#include “stdafx.h“
#include “Ex_DrawBoard_WPF.h“
#include “MainFrm.h“
#include “Ex_DrawBoard_WPFDoc.h“
#include “Ex_DrawBoard_WPFView.h“
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CEx_DrawBoard_WPFApp
BEGIN_MESSAGE_MAP(CEx_DrawBoard_WPFApp CWinApp)
//{{AFX_MSG_MAP(CEx_DrawBoard_WPFApp)
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()
/////////////////////////////////////////////////////////////////////////////
// CEx_DrawBoard_WPFApp construction
CEx_DrawBoard_WPFApp::CEx_DrawBoard_WPFApp()
{
// TODO: add construction code here
// Place all significant initialization in InitInstance
}
/////////////////////////////////////////////////////////////////////////////
// The one and only CEx_DrawBoard_WPFApp object
CEx_DrawBoard_WPFApp theApp;
/////////////////////////////////////////////////////////////////////////////
// CEx_DrawBoard_WPFApp initialization
BOOL CEx_DrawBoard_WPFApp::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(CEx_DrawBoard_WPFDoc)
RUNTIME_CLASS(CMainframe) // main SDI frame window
RUNTIME_CLASS(CEx_DrawBoard_WPFView));
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;
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2013-01-16 11:59 Ex_DrawBoard_WPF\
目录 0 2013-01-15 18:29 Ex_DrawBoard_WPF\Debug\
文件 3818496 2013-01-14 15:17 Ex_DrawBoard_WPF\Debug\Ex_DrawBoard_WPF.bsc
文件 331867 2013-01-15 18:29 Ex_DrawBoard_WPF\Debug\Ex_DrawBoard_WPF.exe
文件 543560 2013-01-15 18:29 Ex_DrawBoard_WPF\Debug\Ex_DrawBoard_WPF.ilk
文件 23584 2013-01-13 15:54 Ex_DrawBoard_WPF\Debug\Ex_DrawBoard_WPF.obj
文件 7066628 2013-01-12 14:12 Ex_DrawBoard_WPF\Debug\Ex_DrawBoard_WPF.pch
文件 615424 2013-01-15 18:29 Ex_DrawBoard_WPF\Debug\Ex_DrawBoard_WPF.pdb
文件 155340 2013-01-15 18:29 Ex_DrawBoard_WPF\Debug\Ex_DrawBoard_WPF.res
文件 0 2013-01-13 15:54 Ex_DrawBoard_WPF\Debug\Ex_DrawBoard_WPF.sbr
文件 17066 2013-01-12 14:12 Ex_DrawBoard_WPF\Debug\Ex_DrawBoard_WPFDoc.obj
文件 0 2013-01-12 14:13 Ex_DrawBoard_WPF\Debug\Ex_DrawBoard_WPFDoc.sbr
文件 110328 2013-01-14 15:17 Ex_DrawBoard_WPF\Debug\Ex_DrawBoard_WPFView.obj
文件 0 2013-01-14 15:17 Ex_DrawBoard_WPF\Debug\Ex_DrawBoard_WPFView.sbr
文件 23585 2013-01-12 14:12 Ex_DrawBoard_WPF\Debug\MainFrm.obj
文件 0 2013-01-12 14:13 Ex_DrawBoard_WPF\Debug\MainFrm.sbr
文件 17175 2013-01-12 14:12 Ex_DrawBoard_WPF\Debug\PenWideDlg.obj
文件 0 2013-01-12 14:13 Ex_DrawBoard_WPF\Debug\PenWideDlg.sbr
文件 1998 2013-01-12 15:12 Ex_DrawBoard_WPF\Debug\Shape.obj
文件 0 2013-01-12 15:12 Ex_DrawBoard_WPF\Debug\Shape.sbr
文件 106845 2013-01-12 14:12 Ex_DrawBoard_WPF\Debug\StdAfx.obj
文件 1388010 2013-01-12 14:12 Ex_DrawBoard_WPF\Debug\StdAfx.sbr
文件 230400 2013-01-15 18:29 Ex_DrawBoard_WPF\Debug\vc60.idb
文件 405504 2013-01-14 15:17 Ex_DrawBoard_WPF\Debug\vc60.pdb
文件 197012 2013-01-15 18:29 Ex_DrawBoard_WPF\Ex_DrawBoard_WPF.aps
文件 4341 2013-01-16 11:21 Ex_DrawBoard_WPF\Ex_DrawBoard_WPF.clw
文件 4350 2013-01-05 11:03 Ex_DrawBoard_WPF\Ex_DrawBoard_WPF.cpp
文件 5295 2013-01-12 15:22 Ex_DrawBoard_WPF\Ex_DrawBoard_WPF.dsp
文件 538 2012-12-10 21:14 Ex_DrawBoard_WPF\Ex_DrawBoard_WPF.dsw
文件 1466 2012-12-10 21:14 Ex_DrawBoard_WPF\Ex_DrawBoard_WPF.h
文件 156672 2013-01-16 11:59 Ex_DrawBoard_WPF\Ex_DrawBoard_WPF.ncb
............此处省略26个文件信息
- 上一篇:C++数字水印完整系统参考
- 下一篇:MFC控件调用百度地图
相关资源
- MFC控件调用百度地图
- VC++ MFC 串口通信20个经典源码合集
- USB识别 HID识别 MFC代码
- MFC 火车售票系统的模拟 简单的学习
- MFC莫尔斯电码的编码发声
- MFC画时钟自适应大小
- 一个MFC做的串口通信的好,是我单位
- 基于DirectShow的MFC视频播放器
- 图像处理方面学习的好MFC显示直方图
- C++ MFC ATM系统
- MFC拼图游戏
- 《Visual C++ MFC棋牌类游戏编程》配套光
- VC++MFC模拟四部电梯程序
- c++ MFC 通讯录 源代码
- MFC图形编程教程,有各种绘图
-
C++调用Windows MediaPla
yer实现的多媒体 - 八皇后程序源码(MFC)
- VC MFC操作Excel 20个 源代码合集
- VC6.0_MFC画图demo小程序源码
- MFC编程85经典
- MFC 与GDI++绘制仪表盘
- MFC带百分比文字显示的进度条
- 通讯录MFC完整版
- MFC各种按钮美化源码
- MFC宿舍管理系统C++含access数据库
- mfc mp3播放器
- MFC聊天室含源代码.rar
- MFC课程设计VC++超市管理系统
- MFC 圆弧算法的实现
- C++MFC日程管理系统
评论
共有 条评论