資源簡介
計算機圖形學 MFC 投影 該程序可以作為學生程序上交

代碼片段和文件信息
//?CGframework.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“CGframework.h“
#include?“MainFrm.h“
#include?“CGframeworkDoc.h“
#include?“CGframeworkView.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
CRuntimeClassList?g_RuntimeClassList;
BOOL CGFRegisterController(?CRuntimeClass*?pControllerClass?)
{
//?檢查是否有重復項,有則直接返回
for(?CRuntimeClassList::iterator?it?=?g_RuntimeClassList.begin();?it?!=?g_RuntimeClassList.end();?it++?)
{
if(?strcmp(?pControllerClass->m_lpszClassName?(*it)->m_lpszClassName?)?==?0?)
return?FALSE;
}
g_RuntimeClassList.push_back(?pControllerClass?);
return?TRUE;
}
/////////////////////////////////////////////////////////////////////////////
//?CCGframeworkApp
BEGIN_MESSAGE_MAP(CCGframeworkApp?CWinApp)
//{{AFX_MSG_MAP(CCGframeworkApp)
ON_COMMAND(ID_APP_ABOUT?OnAppAbout)
//?NOTE?-?the?ClassWizard?will?add?and?remove?mapping?macros?here.
//????DO?NOT?EDIT?what?you?see?in?these?blocks?of?generated?code!
//}}AFX_MSG_MAP
//?Standard?file?based?document?commands
ON_COMMAND(ID_FILE_NEW?CWinApp::OnFileNew)
ON_COMMAND(ID_FILE_OPEN?CWinApp::OnFileOpen)
//?Standard?print?setup?command
ON_COMMAND(ID_FILE_PRINT_SETUP?CWinApp::OnFilePrintSetup)
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
//?CCGframeworkApp?construction
CCGframeworkApp::CCGframeworkApp()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CCGframeworkApp?object
CCGframeworkApp?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CCGframeworkApp?initialization
BOOL?CCGframeworkApp::InitInstance()
{
//?初始化控制器列表
CGFInit();
AfxEnableControlContainer();
//?Standard?initialization
//?If?you?are?not?using?these?features?and?wish?to?reduce?the?size
//??of?your?final?executable?you?should?remove?from?the?following
//??the?specific?initialization?routines?you?do?not?need.
#ifdef?_AFXDLL
Enable3dControls(); //?Call?this?when?using?MFC?in?a?shared?DLL
#else
Enable3dControlsStatic(); //?Call?this?when?linking?to?MFC?statically
#endif
//?Change?the?registry?key?under?which?our?settings?are?stored.
//?TODO:?You?should?modify?this?string?to?be?something?appropriate
//?such?as?the?name?of?your?company?or?organization.
SetRegistryKey(_T(“Local?AppWizard-Generated?Applications“));
LoadStdProfileSettings();??//?Load?standard?INI?file?options?(including?MRU)
//?Register?the?application‘s?document?templates.??Document?templates
//??serve?as?the?connection?between?documents?frame?windows?and?views.
CSingleDocTemplate*?pDocTemplate;
pDocTemplate?=?new?CSingleDocTemplate(
IDR_MAINframe
RUNTIME_CLASS(CCGframeworkDoc)
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2014-06-04?15:50??投影\
?????文件???????43877??2014-06-04?15:49??投影\CGfr
?????文件????????2411??2014-06-04?15:49??投影\CGfr
?????文件????????4768??2014-06-04?15:49??投影\CGfr
?????文件????????5684??2014-06-04?15:49??投影\CGfr
?????文件?????????545??2014-06-04?15:49??投影\CGfr
?????文件????????1649??2014-06-04?15:49??投影\CGfr
?????文件??????181248??2014-06-04?15:50??投影\CGfr
?????文件???????49664??2014-06-04?15:50??投影\CGfr
?????文件????????2501??2014-06-04?15:50??投影\CGfr
?????文件???????11134??2014-06-04?15:49??投影\CGfr
?????文件????????1842??2014-06-04?15:49??投影\CGfr
?????文件????????1530??2014-06-04?15:49??投影\CGfr
?????文件????????5870??2014-06-04?15:49??投影\CGfr
?????文件????????2470??2014-06-04?15:49??投影\CGfr
?????文件????????3345??2014-06-04?15:49??投影\Controllerba
?????文件????????2619??2014-06-04?15:49??投影\Controllerba
?????目錄???????????0??2014-06-04?15:50??投影\Debug\
?????文件??????151625??2014-06-04?15:50??投影\Debug\CGfr
?????文件??????404108??2014-06-04?15:50??投影\Debug\CGfr
?????文件???????46281??2014-06-04?15:50??投影\Debug\CGfr
?????文件?????5500532??2014-06-04?15:50??投影\Debug\CGfr
?????文件??????418816??2014-06-04?15:50??投影\Debug\CGfr
?????文件????????6964??2014-06-04?15:50??投影\Debug\CGfr
?????文件???????19242??2014-06-04?15:50??投影\Debug\CGfr
?????文件???????40569??2014-06-04?15:50??投影\Debug\CGfr
?????文件???????28566??2014-06-04?15:50??投影\Debug\Controllerba
?????文件???????21755??2014-06-04?15:50??投影\Debug\DlgSelectController.obj
?????文件???????44469??2014-06-04?15:50??投影\Debug\Ex4.obj
?????文件????????6965??2014-06-04?15:50??投影\Debug\Init.obj
?????文件???????24270??2014-06-04?15:50??投影\Debug\MainFrm.obj
............此處省略25個文件信息
評論
共有 條評論