C++ 橡皮筋技术画矩形


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
“);
return -1;      // fail to create
}

if (!m_wndStatusBar.Create(this) ||
!m_wndStatusBar.SetIndicators(indicators
  sizeof(indicators)/sizeof(UINT)))
{
TRACE0(“Failed to create status bar
“);
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
ect.clw

     文件       4263  2008-10-30 18:29  rectReadMe.txt

     文件       4173  2008-10-30 18:29  rect
ect.cpp

     文件       1054  2008-10-30 18:29  rectStdAfx.h

     文件        206  2008-10-30 18:29  rectStdAfx.cpp

     文件       1581  2008-10-30 18:29  rectMainFrm.h

     文件       2505  2008-10-30 18:29  rectMainFrm.cpp

     文件       1702  2008-10-30 18:29  rect
ectDoc.cpp

     文件        396  2008-10-30 18:29  rect
es
ect.rc2

     文件       1078  2008-10-30 18:29  rect
es
ectDoc.ico

     文件       1078  2008-10-30 18:29  rect
es
ect.ico

     文件       1078  2008-10-30 18:29  rect
esToolbar.bmp

     文件        490  2008-10-30 18:29  rectResource.h

     文件      10519  2008-10-30 18:29  rect
ect.rc

     文件       4513  2008-10-30 18:29  rect
ect.dsp

     文件        533  2008-10-30 18:29  rect
ect.dsw

     文件       7228  2008-10-30 18:33  rectDebug
ect.res

     文件     222208  2008-10-30 18:42  rectDebugvc60.idb

     文件    5505248  2008-10-30 18:33  rectDebug
ect.pch

     文件     364544  2008-10-30 18:41  rectDebugvc60.pdb

     文件     105739  2008-10-30 18:33  rectDebugStdAfx.obj

     文件      20040  2008-10-30 18:34  rectDebugMainFrm.obj

     文件      22962  2008-10-30 18:34  rectDebug
ect.obj

     文件      14742  2008-10-30 18:34  rectDebug
ectDoc.obj

     文件     330776  2008-10-30 18:41  rectDebug
ect.ilk

     文件     118865  2008-10-30 18:41  rectDebug
ect.exe

     文件     427008  2008-10-30 18:41  rectDebug
ect.pdb

     文件      26462  2008-10-30 18:41  rectDebug
ectView.obj

     文件      28772  2008-10-30 18:30  rect
ect.aps

     文件        242  2008-10-30 18:42  rect
ect.plg

............此处省略12个文件信息

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。

发表评论

评论列表(条)