資源簡介
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個文件信息
評論
共有 條評論