資源簡介
計算機圖形學 visual c++ 6.0 實時動畫(有注釋).zip

代碼片段和文件信息
//?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
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2012-01-21?21:22??實時動畫\
?????目錄???????????0??2012-01-21?21:22??實時動畫\Debug\
?????文件???????20115??2004-11-11?12:01??實時動畫\Debug\MainFrm.obj
?????文件????????9159??2004-11-11?12:01??實時動畫\Debug\Sphere.obj
?????文件??????105885??2004-11-11?12:01??實時動畫\Debug\StdAfx.obj
?????文件??????222208??2004-11-11?22:13??實時動畫\Debug\vc60.idb
?????文件??????364544??2004-11-11?22:13??實時動畫\Debug\vc60.pdb
?????文件??????122958??2004-11-11?22:13??實時動畫\Debug\實時動畫.exe
?????文件??????327256??2004-11-11?22:13??實時動畫\Debug\實時動畫.ilk
?????文件???????23091??2004-11-11?12:02??實時動畫\Debug\實時動畫.obj
?????文件?????5495324??2004-11-11?12:01??實時動畫\Debug\實時動畫.pch
?????文件??????443392??2004-11-11?22:13??實時動畫\Debug\實時動畫.pdb
?????文件????????6760??2004-11-11?21:29??實時動畫\Debug\實時動畫.res
?????文件???????14757??2004-11-11?12:01??實時動畫\Debug\實時動畫Doc.obj
?????文件???????27125??2004-11-11?22:13??實時動畫\Debug\實時動畫View.obj
?????文件????????2509??2004-11-11?11:02??實時動畫\MainFrm.cpp
?????文件????????1581??2004-11-11?11:02??實時動畫\MainFrm.h
?????文件????????4317??2004-11-11?11:02??實時動畫\ReadMe.txt
?????目錄???????????0??2012-01-21?21:22??實時動畫\res\
?????文件?????????642??2004-11-11?11:34??實時動畫\Resource.h
?????文件????????1078??2004-11-11?11:02??實時動畫\res\Toolbar.bmp
?????文件????????1078??2004-11-11?11:02??實時動畫\res\實時動畫.ico
?????文件?????????400??2004-11-11?11:02??實時動畫\res\實時動畫.rc2
?????文件????????1078??2004-11-11?11:02??實時動畫\res\實時動畫Doc.ico
?????文件????????3049??2004-11-11?11:49??實時動畫\Sphere.cpp
?????文件?????????563??2004-11-11?11:47??實時動畫\Sphere.h
?????文件?????????210??2004-11-11?11:02??實時動畫\StdAfx.cpp
?????文件????????1054??2004-11-11?11:02??實時動畫\StdAfx.h
?????文件???????43316??2004-11-11?21:29??實時動畫\實時動畫.aps
?????文件????????1898??2004-12-16?16:45??實時動畫\實時動畫.clw
?????文件????????4161??2004-11-11?11:02??實時動畫\實時動畫.cpp
............此處省略11個文件信息
評論
共有 條評論