资源简介
可以用Bresenham绘制直线 五角星等简单图形。
代码片段和文件信息
// DrawSw.cpp : Defines the class behaviors for the application.
//
#include “stdafx.h“
#include “DrawSw.h“
#include “MainFrm.h“
#include “DrawSwDoc.h“
#include “DrawSwView.h“
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CDrawSwApp
BEGIN_MESSAGE_MAP(CDrawSwApp CWinApp)
//{{AFX_MSG_MAP(CDrawSwApp)
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()
/////////////////////////////////////////////////////////////////////////////
// CDrawSwApp construction
CDrawSwApp::CDrawSwApp()
{
// TODO: add construction code here
// Place all significant initialization in InitInstance
}
/////////////////////////////////////////////////////////////////////////////
// The one and only CDrawSwApp object
CDrawSwApp theApp;
/////////////////////////////////////////////////////////////////////////////
// CDrawSwApp initialization
BOOL CDrawSwApp::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(CDrawSwDoc)
RUNTIME_CLASS(CMainframe) // main SDI frame window
RUNTIME_CLASS(CDrawSwView));
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->UpdateWindow();
return TRUE;
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 131153 2010-09-27 14:34 DrawSw\Debug\DrawSw.exe
文件 341676 2010-09-27 14:34 DrawSw\Debug\DrawSw.ilk
文件 23232 2009-09-15 22:04 DrawSw\Debug\DrawSw.obj
文件 5501952 2009-09-13 09:11 DrawSw\Debug\DrawSw.pch
文件 500736 2010-09-27 14:34 DrawSw\Debug\DrawSw.pdb
文件 8116 2009-09-15 22:03 DrawSw\Debug\DrawSw.res
文件 15004 2009-09-13 09:11 DrawSw\Debug\DrawSwDoc.obj
文件 43391 2009-09-17 16:47 DrawSw\Debug\DrawSwView.obj
文件 10925 2010-09-27 14:34 DrawSw\Debug\fstar.obj
文件 12658 2010-09-27 14:34 DrawSw\Debug\Line.obj
文件 20204 2009-09-13 09:11 DrawSw\Debug\MainFrm.obj
文件 105887 2009-09-13 09:11 DrawSw\Debug\StdAfx.obj
文件 230400 2010-10-25 23:27 DrawSw\Debug\vc60.idb
文件 372736 2010-09-27 14:34 DrawSw\Debug\vc60.pdb
文件 30372 2010-09-27 14:00 DrawSw\DrawSw.aps
文件 3549 2010-09-27 19:51 DrawSw\DrawSw.clw
文件 4209 2009-09-13 08:55 DrawSw\DrawSw.cpp
文件 3401 2010-09-27 20:09 DrawSw\DrawSw.dsp
文件 520 2010-09-27 20:11 DrawSw\DrawSw.dsw
文件 1356 2009-09-13 08:55 DrawSw\DrawSw.h
文件 173056 2010-10-25 23:27 DrawSw\DrawSw.ncb
文件 53760 2010-10-25 23:27 DrawSw\DrawSw.opt
文件 246 2010-10-25 23:27 DrawSw\DrawSw.plg
文件 13663 2009-09-15 22:03 DrawSw\DrawSw.rc
文件 1742 2009-09-13 08:55 DrawSw\DrawSwDoc.cpp
文件 1475 2009-09-13 08:55 DrawSw\DrawSwDoc.h
文件 7804 2009-09-17 16:47 DrawSw\DrawSwView.cpp
文件 2097 2009-09-15 22:04 DrawSw\DrawSwView.h
文件 1121 2010-09-27 14:31 DrawSw\fstar.cpp
文件 1152 2010-09-27 14:31 DrawSw\fstar.h
............此处省略18个文件信息
相关资源
- c++ 、MFC 实现中点画圆算法及工程代码
- MFC websocket server | MFC websocket服务器
- VC++6.0 MFC使用ODBC链接MySQL把图片写入
- 肯德基点餐界面MFC
- 基于c++MFC的运动会管理系统.rar
- 个人收支财务管理系统 VC6.0MFC+ sql s
- C++聊天室(MFC实现)
- MFC 点对点聊天小系统
- vs2010 操作WORD VBA MFC 批注 WORD
- 基于MFCC的GMM的说话人识别.rar
- MFC记事本程序
- Guard Port - MFC 2012
- VC之MFC类库中文手册一怀去意.rar
- 解决VC6生成的MFC程序不能在没有安装
- MFC非客户区完美自绘
- mfc42d.dll 【64位+32位】34087
- MFC解决窗口保存及重绘闪烁问题的一
- MFC解决窗口保存及重绘闪烁问题的一
- 在MFC中使用duilib
- 文本有关的说话人识别系统
- MFC与SQL工资管理系统.rar
- Hermite,Bezier,三次B样条曲线的MFC实现
- MFC的用户登录系统
- mfc运行必须的5个dll
- 中国象棋对弈(MFC单机版)
- 基于C_S结构的Socket程序设计(含源码
- MFC使用WebBrowser控件调用百度地图API案
- msvcr80d.dll msvcp80d.dll mfc80d.dll Microsoft
- mfc开发的虚拟列表控件(包含3个)
- MFC教师课程管理系统+mysql
评论
共有 条评论