資源簡介
直線生成算法 圓(橢圓)的生成算法、區域填充算法
裁剪算法、曲線、曲面生成算法

代碼片段和文件信息
//?CG.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“CG.h“
#include?“MainFrm.h“
#include?“CGDoc.h“
#include?“CGView.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#endif
//?CCGApp
BEGIN_MESSAGE_MAP(CCGApp?CWinApp)
ON_COMMAND(ID_APP_ABOUT?&CCGApp::OnAppAbout)
//?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()
//?CCGApp?construction
CCGApp::CCGApp()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
//?The?one?and?only?CCGApp?object
CCGApp?theApp;
//?CCGApp?initialization
BOOL?CCGApp::InitInstance()
{
//?InitCommonControlsEx()?is?required?on?Windows?XP?if?an?application
//?manifest?specifies?use?of?ComCtl32.dll?version?6?or?later?to?enable
//?visual?styles.??Otherwise?any?window?creation?will?fail.
INITCOMMONCONTROLSEX?InitCtrls;
InitCtrls.dwSize?=?sizeof(InitCtrls);
//?Set?this?to?include?all?the?common?control?classes?you?want?to?use
//?in?your?application.
InitCtrls.dwICC?=?ICC_WIN95_CLASSES;
InitCommonControlsEx(&InitCtrls);
CWinApp::InitInstance();
//?Initialize?OLE?libraries
if?(!AfxOleInit())
{
AfxMessageBox(IDP_OLE_INIT_FAILED);
return?FALSE;
}
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
//?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(4);??//?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(CCGDoc)
RUNTIME_CLASS(CMainframe)???????//?main?SDI?frame?window
RUNTIME_CLASS(CCGView));
if?(!pDocTemplate)
return?FALSE;
AddDocTemplate(pDocTemplate);
//?Parse?command?line?for?standard?shell?commands?DDE?file?open
CCommandLineInfo?cmdInfo;
ParseCommandLine(cmdInfo);
//?Dispatch?commands?specified?on?the?command?line.??Will?return?FALSE?if
//?app?was?launched?with?/RegServer?/Register?/Unregserver?or?/Unregister.
if?(!ProcessShellCommand(cmdInfo))
return?FALSE;
//?The?one?and?only?window?has?been?initialized?so?show?and?update?it
m_pMainWnd->ShowWindow(SW_SHOW);
m_pMainWnd->UpdateWindow();
//?call?DragAcceptFiles?only?if?there‘s?a?suffix
//??I
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件??????55456??2009-05-13?16:58??CG\CG\CG.APS
?????文件???????3740??2002-01-01?00:15??CG\CG\CG.cpp
?????文件????????501??2002-01-01?00:15??CG\CG\CG.h
?????文件??????13933??2009-05-10?23:16??CG\CG\CG.rc
?????文件???????5883??2009-06-21?22:59??CG\CG\CG.vcproj
?????文件???????1427??2002-01-01?02:28??CG\CG\CG.vcproj.08F13BED0882461.Administrator.user
?????文件???????5819??2002-01-01?00:44??CG\CG\CG.vcproj.8.00.old
?????文件???????1405??2009-06-18?17:17??CG\CG\CG.vcproj.A052.Admin.user
?????文件???????1405??2009-05-21?16:23??CG\CG\CG.vcproj.A053.Admin.user
?????文件???????1411??2009-06-22?00:29??CG\CG\CG.vcproj.qkkk-PC.qkkk.user
?????文件???????1405??2007-05-21?10:36??CG\CG\CG.vcproj.THIN.Administrator.user
?????文件???????1405??2009-05-10?23:25??CG\CG\CG.vcproj.THIN.LinZG.user
?????文件???????1411??2009-05-06?09:54??CG\CG\CG.vcproj.XVISION.Administrator.user
?????文件???????1037??2002-01-01?00:58??CG\CG\CGDoc.cpp
?????文件????????591??2002-01-01?00:58??CG\CG\CGDoc.h
?????文件??????30871??2009-06-18?12:45??CG\CG\CGView.cpp
?????文件???????1795??2009-05-10?23:22??CG\CG\CGView.h
?????文件???????1949??2002-01-01?00:15??CG\CG\MainFrm.cpp
?????文件????????739??2002-01-01?00:15??CG\CG\MainFrm.h
?????文件???????4935??2002-01-01?00:15??CG\CG\ReadMe.txt
?????文件???????1379??2009-05-10?23:11??CG\CG\resource.h
?????文件????????202??2002-01-01?00:15??CG\CG\stdafx.cpp
?????文件???????2864??2002-01-01?00:15??CG\CG\stdafx.h
????..A..H.?????25088??2009-06-22?00:29??CG\CG.suo
????..A..H.?????24064??2009-06-18?17:17??CG\CG.suo.old
?????目錄??????????0??2010-04-29?09:51??CG\CG
?????目錄??????????0??2010-04-29?09:52??CG
-----------?---------??----------?-----??----
???????????????190715????????????????????27
............此處省略0個文件信息
- 上一篇:基于數字圖像處理的條形碼識別方法
- 下一篇:UPX自動脫殼工具2019測試成功
評論
共有 條評論