91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 2.51MB
    文件類型: .zip
    金幣: 2
    下載: 0 次
    發(fā)布日期: 2023-09-07
  • 語言: C/C++
  • 標(biāo)簽: CAD??MFC??

資源簡介

利用MFC設(shè)計(jì)一個(gè)小型CAD系統(tǒng),具備繪制基本圖元、修改圖形、對象捕捉、圖形觀察以及系統(tǒng)狀態(tài)設(shè)置方面的功能。

資源截圖

代碼片段和文件信息

//?CAD.cpp?:?Defines?the?class?behaviors?for?the?application.
//

#include?“stdafx.h“
#include?“CAD.h“

#include?“MainFrm.h“
#include?“ChildFrm.h“
#include?“CADDoc.h“
#include?“CADView.h“

#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
//?CCADApp

BEGIN_MESSAGE_MAP(CCADApp?CWinApp)
//{{AFX_MSG_MAP(CCADApp)
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()

/////////////////////////////////////////////////////////////////////////////
//?CCADApp?construction

CCADApp::CCADApp()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}

/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CCADApp?object

CCADApp?theApp;

/////////////////////////////////////////////////////////////////////////////
//?CCADApp?initialization

BOOL?CCADApp::InitInstance()
{
//?初始化?OLE?庫
if?(!AfxOleInit())
{
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.

#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.

CMultiDocTemplate*?pDocTemplate;
pDocTemplate?=?new?CMultiDocTemplate(
IDR_CADTYPE
RUNTIME_CLASS(CCADDoc)
RUNTIME_CLASS(CChildframe)?//?custom?MDI?child?frame
RUNTIME_CLASS(CCADView));
AddDocTemplate(pDocTemplate);

//?create?main?MDI?frame?window
CMainframe*?pMainframe?=?new?CMainframe;
if?(!pMainframe->Loadframe(IDR_MAINframe))
return?FALSE;
m_pMainWnd?=?pMainframe;

//?Parse?command?line?for?standard?shell?commands?DDE?file?open
CCommandLineInfo?cmdInfo;
ParseCommandLine(cmdInfo);

//?Dispatch?commands?specified?on?the?command?line
if?(!ProcessS

?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2011-06-21?17:38??CAD\
?????文件???????37700??2011-06-21?15:45??CAD\CAD.APS
?????文件????????5435??2011-06-21?15:51??CAD\CAD.clw
?????文件????????4408??2011-06-17?10:19??CAD\CAD.cpp
?????文件????????5434??2011-06-17?10:19??CAD\CAD.dsp
?????文件?????????531??2011-06-17?10:19??CAD\CAD.dsw
?????文件????????1323??2011-06-17?10:19??CAD\CAD.h
?????文件??????254976??2011-06-21?15:51??CAD\CAD.ncb
?????文件???????54784??2011-06-21?15:51??CAD\CAD.opt
?????文件????????2576??2011-06-21?15:43??CAD\CAD.plg
?????文件???????19209??2011-06-17?10:19??CAD\CAD.rc
?????文件????????2511??2011-06-17?10:19??CAD\CADDoc.cpp
?????文件????????1733??2011-06-17?10:19??CAD\CADDoc.h
?????文件???????15687??2011-06-17?10:19??CAD\CADView.cpp
?????文件????????3353??2011-06-17?10:19??CAD\CADView.h
?????文件????????1532??2011-06-17?10:19??CAD\ChildFrm.cpp
?????文件????????1397??2011-06-17?10:19??CAD\ChildFrm.h
?????目錄???????????0??2011-06-17?10:19??CAD\Debug\
?????文件??????159823??2011-06-21?15:43??CAD\Debug\CAD.exe
?????文件??????486004??2011-06-21?15:43??CAD\Debug\CAD.ilk
?????文件???????23694??2011-06-21?15:43??CAD\Debug\CAD.obj
?????文件?????5505248??2011-06-21?15:43??CAD\Debug\CAD.pch
?????文件??????443392??2011-06-21?15:43??CAD\Debug\CAD.pdb
?????文件???????12656??2011-06-21?15:43??CAD\Debug\CAD.res
?????文件???????23391??2011-06-21?15:43??CAD\Debug\CADDoc.obj
?????文件???????71509??2011-06-21?15:43??CAD\Debug\CADView.obj
?????文件???????16352??2011-06-21?15:43??CAD\Debug\ChildFrm.obj
?????文件???????16791??2011-06-21?15:43??CAD\Debug\EllipseObj.obj
?????文件???????19501??2011-06-21?15:43??CAD\Debug\EntityObj.obj
?????文件???????15211??2011-06-21?15:43??CAD\Debug\LineObj.obj
?????文件???????24000??2011-06-21?15:43??CAD\Debug\MainFrm.obj
............此處省略27個(gè)文件信息

評論

共有 條評論