資源簡介
單擊鼠標左鍵,可改變舉行顏色,按住鼠標左鍵可隨意拖動矩形移動

代碼片段和文件信息
//?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
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件??????19697??2012-02-06?11:24??RECT\Debug\MainFrm.obj
?????文件?????118837??2012-04-24?09:36??RECT\Debug\RECT.exe
?????文件?????314424??2012-04-24?09:36??RECT\Debug\RECT.ilk
?????文件??????22618??2012-02-06?11:47??RECT\Debug\RECT.obj
?????文件????5507044??2012-02-06?11:24??RECT\Debug\RECT.pch
?????文件?????467968??2012-04-24?09:36??RECT\Debug\RECT.pdb
?????文件???????7228??2012-02-06?11:24??RECT\Debug\RECT.res
?????文件??????14398??2012-02-06?11:24??RECT\Debug\RECTDoc.obj
?????文件??????24764??2012-04-24?09:36??RECT\Debug\RECTView.obj
?????文件?????105428??2012-02-06?11:24??RECT\Debug\StdAfx.obj
?????文件?????214016??2012-04-24?09:36??RECT\Debug\vc60.idb
?????文件?????364544??2012-04-24?09:36??RECT\Debug\vc60.pdb
?????文件???????2505??2012-02-03?15:43??RECT\MainFrm.cpp
?????文件???????1581??2012-02-03?15:43??RECT\MainFrm.h
?????文件??????32171??2012-02-06?14:42??RECT\moverect.rar
?????文件???????4263??2012-02-03?15:43??RECT\ReadMe.txt
?????文件??????28416??2012-02-06?08:37??RECT\RECT.APS
?????文件???????2218??2012-02-06?14:37??RECT\RECT.clw
?????文件???????4173??2012-02-03?15:43??RECT\RECT.cpp
?????文件???????4513??2012-02-03?15:43??RECT\RECT.dsp
?????文件????????531??2012-02-03?15:43??RECT\RECT.dsw
?????文件???????1334??2012-02-03?15:43??RECT\RECT.h
?????文件??????74752??2012-04-24?09:37??RECT\RECT.ncb
?????文件??????54784??2012-04-24?09:37??RECT\RECT.opt
?????文件???????1097??2012-04-24?09:36??RECT\RECT.plg
?????文件??????10519??2012-02-03?15:43??RECT\RECT.rc
?????文件???????1702??2012-02-03?15:43??RECT\RECTDoc.cpp
?????文件???????1453??2012-02-03?15:43??RECT\RECTDoc.h
?????文件???????4790??2012-02-06?16:12??RECT\RECTView.cpp
?????文件???????1990??2012-02-06?11:46??RECT\RECTView.h
............此處省略13個文件信息
- 上一篇:人口健康信息平臺解決方案
- 下一篇:BCH編譯碼程序
評論
共有 條評論