資源簡介
計算機圖形學課程設計代碼(運用MFC編寫的)之幀動畫

代碼片段和文件信息
//?MainFrm.cpp?:?implementation?of?the?CMainframe?class
//
#include?“stdafx.h“
#include?“幀動畫.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
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件??????20099??2004-09-16?13:41??幀動畫\Debug\MainFrm.obj
?????文件?????105869??2004-09-16?13:41??幀動畫\Debug\StdAfx.obj
?????文件?????205824??2004-09-17?16:27??幀動畫\Debug\vc60.idb
?????文件?????364544??2004-09-17?16:27??幀動畫\Debug\vc60.pdb
?????文件?????127047??2004-09-17?16:27??幀動畫\Debug\幀動畫.exe
?????文件?????376844??2004-09-17?16:27??幀動畫\Debug\幀動畫.ilk
?????文件??????23067??2004-09-16?13:41??幀動畫\Debug\幀動畫.obj
?????文件?????427008??2004-09-17?16:27??幀動畫\Debug\幀動畫.pdb
?????文件??????13648??2004-09-17?16:26??幀動畫\Debug\幀動畫.res
?????文件??????14715??2004-09-16?13:41??幀動畫\Debug\幀動畫Doc.obj
?????文件??????27061??2004-09-17?16:27??幀動畫\Debug\幀動畫View.obj
?????文件???????2507??2004-09-16?13:04??幀動畫\MainFrm.cpp
?????文件???????1581??2004-09-16?13:04??幀動畫\MainFrm.h
?????文件???????4283??2004-09-16?13:04??幀動畫\ReadMe.txt
?????文件???????1270??2004-09-17?16:21??幀動畫\res\bitmap1.bmp
?????文件???????1270??2004-09-17?16:21??幀動畫\res\bitmap2.bmp
?????文件???????1270??2004-09-17?16:21??幀動畫\res\bitmap3.bmp
?????文件???????1270??2004-09-17?16:25??幀動畫\res\bitmap4.bmp
?????文件???????1270??2004-09-17?16:26??幀動畫\res\bitmap5.bmp
?????文件???????1078??2004-09-16?13:04??幀動畫\res\Toolbar.bmp
?????文件???????1078??2004-09-16?13:04??幀動畫\res\幀動畫.ico
?????文件????????398??2004-09-16?13:04??幀動畫\res\幀動畫.rc2
?????文件???????1078??2004-09-16?13:04??幀動畫\res\幀動畫Doc.ico
?????文件????????865??2004-09-16?13:41??幀動畫\Resource.h
?????文件????????208??2004-09-16?13:04??幀動畫\StdAfx.cpp
?????文件???????1054??2004-09-16?13:04??幀動畫\StdAfx.h
?????文件??????35912??2004-11-11?18:22??幀動畫\幀動畫.aps
?????文件???????2271??2004-11-11?21:01??幀動畫\幀動畫.clw
?????文件???????4153??2004-09-16?13:04??幀動畫\幀動畫.cpp
?????文件???????4912??2004-09-16?13:45??幀動畫\幀動畫.dsp
............此處省略16個文件信息
- 上一篇:計算機圖形學——球的光照模型算法
- 下一篇:學生簽到管理系統C++版本
評論
共有 條評論