资源简介
C++ 橡皮筋技术画矩形
橡皮筋技术 拖曳 动态

代码片段和文件信息
// MainFrm.cpp : implementation of the CMainframe class
//
#include “stdafx.h“
#include “rect.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
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 2282 2008-10-30 18:31 rect\rect.clw
文件 4263 2008-10-30 18:29 rect\ReadMe.txt
文件 4173 2008-10-30 18:29 rect\rect.cpp
文件 1054 2008-10-30 18:29 rect\StdAfx.h
文件 206 2008-10-30 18:29 rect\StdAfx.cpp
文件 1581 2008-10-30 18:29 rect\MainFrm.h
文件 2505 2008-10-30 18:29 rect\MainFrm.cpp
文件 1702 2008-10-30 18:29 rect\rectDoc.cpp
文件 396 2008-10-30 18:29 rect\res\rect.rc2
文件 1078 2008-10-30 18:29 rect\res\rectDoc.ico
文件 1078 2008-10-30 18:29 rect\res\rect.ico
文件 1078 2008-10-30 18:29 rect\res\Toolbar.bmp
文件 490 2008-10-30 18:29 rect\Resource.h
文件 10519 2008-10-30 18:29 rect\rect.rc
文件 4513 2008-10-30 18:29 rect\rect.dsp
文件 533 2008-10-30 18:29 rect\rect.dsw
文件 7228 2008-10-30 18:33 rect\Debug\rect.res
文件 222208 2008-10-30 18:42 rect\Debug\vc60.idb
文件 5505248 2008-10-30 18:33 rect\Debug\rect.pch
文件 364544 2008-10-30 18:41 rect\Debug\vc60.pdb
文件 105739 2008-10-30 18:33 rect\Debug\StdAfx.obj
文件 20040 2008-10-30 18:34 rect\Debug\MainFrm.obj
文件 22962 2008-10-30 18:34 rect\Debug\rect.obj
文件 14742 2008-10-30 18:34 rect\Debug\rectDoc.obj
文件 330776 2008-10-30 18:41 rect\Debug\rect.ilk
文件 118865 2008-10-30 18:41 rect\Debug\rect.exe
文件 427008 2008-10-30 18:41 rect\Debug\rect.pdb
文件 26462 2008-10-30 18:41 rect\Debug\rectView.obj
文件 28772 2008-10-30 18:30 rect\rect.aps
文件 242 2008-10-30 18:42 rect\rect.plg
............此处省略12个文件信息
相关资源
- 单片机c语言源程序(51定时器 八个按
- QT 动态曲线
- Proteus仿真:动态数码管
- 汽车加油行驶问题 C++算法实现
- 功能强大的多条曲线绘制类 (MFC,
- 飞狐 动态库扩展源代码
- C++动态生成机器码
- vc++和OpenGL实现三维地形实时动态显示
- VC++2012版Prim算法最小生成树动态演示
- VC++获取网上股市数据并实时图表显示
- vc6.0+opengl动态绘制五角星
- OpenGL实现三维地形实时动态显示
- VC++实现动态创建对话框非常好的C++源
- 基于QT5.6编写Echart动态交互仪表盘-修
- 动态分区存储管理的mfc可视化实现
- 操作系统生产者消费者问题MFC动态实
- n皇后动态可视化 简单 C++ MFC
- MFC动态折线图
- Matlab6.5 与 VC6 利用动态链接库实现混
- QT实现的聊天界面,好友列表,支持文
- 操作系统实验 进程调度 高响应比优先
- MFC 动态链接库的使用
- sqlite3x86 & x64开发库
- MFC 拖曳文件获得文件路径
- C++版 模拟LED动态显示文字
- QT5.5或QT5.6与echarts实现动态图表
- Opengl VC++演示六轴机械手
- 用动态时间规整模型进行语音识别
- VS2019c++装换为动态链接库DLL.doc
- Qt5.11.1+VS2017 X64 C++动态编译 串口通讯
评论
共有 条评论