资源简介
mfc 二维图形的变换 旋转 平移 比例 几何变换

代码片段和文件信息
// MainFrm.cpp : implementation of the CMainframe class
//
#include “stdafx.h“
#include “Test.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
}
if (!m_oprate.Create(thisIDD_DIALOG1CBRS_LEFTIDD_DIALOG1) )
{
TRACE0(“Failed to create dialogbar\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
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 23139 2009-11-24 14:21 CdialogBar\Debug\MainFrm.obj
文件 0 2009-11-24 14:21 CdialogBar\Debug\MainFrm.sbr
文件 21207 2009-11-24 14:21 CdialogBar\Debug\Operate.obj
文件 0 2009-11-24 14:21 CdialogBar\Debug\Operate.sbr
文件 105972 2009-11-24 14:21 CdialogBar\Debug\StdAfx.obj
文件 1374979 2009-11-24 14:21 CdialogBar\Debug\StdAfx.sbr
文件 5374976 2009-11-24 16:57 CdialogBar\Debug\Test.bsc
文件 237666 2009-11-24 16:57 CdialogBar\Debug\Test.exe
文件 390900 2009-11-24 16:57 CdialogBar\Debug\Test.ilk
文件 23508 2009-11-24 14:21 CdialogBar\Debug\Test.obj
文件 6864308 2009-11-24 14:21 CdialogBar\Debug\Test.pch
文件 467968 2009-11-24 16:57 CdialogBar\Debug\Test.pdb
文件 96440 2009-11-24 14:21 CdialogBar\Debug\Test.res
文件 0 2009-11-24 14:21 CdialogBar\Debug\Test.sbr
文件 14992 2009-11-24 14:21 CdialogBar\Debug\TestDoc.obj
文件 0 2009-11-24 14:21 CdialogBar\Debug\TestDoc.sbr
文件 35367 2009-11-24 16:57 CdialogBar\Debug\TestView.obj
文件 0 2009-11-24 16:57 CdialogBar\Debug\TestView.sbr
文件 214016 2009-12-24 00:05 CdialogBar\Debug\vc60.idb
文件 364544 2009-11-24 16:57 CdialogBar\Debug\vc60.pdb
文件 2658 2009-11-22 19:35 CdialogBar\MainFrm.cpp
文件 1630 2009-11-20 17:26 CdialogBar\MainFrm.h
文件 68 2009-10-19 15:20 CdialogBar\method.txt
文件 3092 2009-11-23 11:48 CdialogBar\Operate.cpp
文件 1367 2009-11-20 19:06 CdialogBar\Operate.h
文件 22284 2009-11-20 17:30 CdialogBar\RCa01112
文件 4263 2003-06-30 08:36 CdialogBar\ReadMe.txt
文件 68578 2009-01-02 10:13 CdialogBar\res\about.bmp
文件 10134 2003-06-30 08:50 CdialogBar\res\app.ico
文件 766 2003-06-30 08:50 CdialogBar\res\draw.ico
............此处省略31个文件信息
相关资源
- 基于mfc的多线程文件传输
- MFC数字钟(基于VC6.0)
- VC++MFC小游戏实例教程(实例)+MFC类库
- ChartCtrl控件库(可在VS2019中使用)
- 商品库存管理系统 C++ MFC
- mfc 调用redis
- MFC视频播放器源码(支持avi/wma/mp3等格
- 交互式计算机图形学 第六版 OpenGL源代
- 图形学简单绘图系统
- mfc绘图大全(画直线、矩形、椭圆)
- MFC控件重绘
- hook,捕获所有案件,查找所有窗口,
- (学习)VS2010之MFC入门到精通教程
- MFC文档_视图_框架_模板结构体系深入
- 简单员工管理系统(适合初学MFC)
- MFC五子棋游戏
- MFC UDP编程
- MFC的异步网络通讯应用程序
- C++MFC模块讲解,黑发程序员课程整理
- 一个简单而强大的基于MFC的web server源
- 基于MFC的VC++仿QQ浏览器源码(雏形)
- MFCaccess.rar
- VC++MFC课程设计的学生成绩管理系统
- MFC 日历控件 万年历 Calendar自绘
- CrystalDiskInfo-HDD/SSD硬盘信息,SMART信息
- MFC自定义界面HUI,高效简单,含详细
- 仿射密码-Affine cipher
- c++MFC车牌自动识别定位,只能定位和
- mfc+sql 酒店客房管理系统
- 基于图割的图像分割OpenCV+MFC实现
评论
共有 条评论