資源簡介
基本功能已實現,比如矩形,圓,直線的繪制,畫筆,畫刷的實現,圖像擦除等功能。

代碼片段和文件信息
//?217.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“217.h“
#include?“MainFrm.h“
#include?“217Doc.h“
#include?“217View.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CMy217App
BEGIN_MESSAGE_MAP(CMy217App?CWinApp)
//{{AFX_MSG_MAP(CMy217App)
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()
/////////////////////////////////////////////////////////////////////////////
//?CMy217App?construction
CMy217App::CMy217App()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CMy217App?object
CMy217App?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CMy217App?initialization
BOOL?CMy217App::InitInstance()
{
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(CMy217Doc)
RUNTIME_CLASS(CMainframe)???????//?main?SDI?frame?window
RUNTIME_CLASS(CMy217View));
AddDocTemplate(pDocTemplate);
//?Parse?command?line?for?standard?shell?commands?DDE?file?open
CCommandLineInfo?cmdInfo;
ParseCommandLine(cmdInfo);
//?Dispatch?commands?specified?on?the?command?line
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();
return?TRUE;
}
/////////////////
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件??????29780??2013-11-15?20:06??217\217.aps
?????文件???????2876??2013-11-15?20:37??217\217.clw
?????文件???????4183??2013-11-06?12:21??217\217.cpp
?????文件???????4492??2013-11-06?12:21??217\217.dsp
?????文件????????514??2013-11-06?12:21??217\217.dsw
?????文件???????1333??2013-11-06?12:21??217\217.h
?????文件?????107520??2013-11-15?20:37??217\217.ncb
?????文件??????49664??2013-11-15?20:37??217\217.opt
?????文件????????966??2013-11-15?20:37??217\217.plg
?????文件??????13845??2013-11-13?10:58??217\217.rc
?????文件???????1716??2013-11-06?12:21??217\217Doc.cpp
?????文件???????1456??2013-11-06?12:21??217\217Doc.h
?????文件??????14192??2013-11-15?20:37??217\217View.cpp
?????文件???????3918??2013-11-13?11:43??217\217View.h
?????文件?????127032??2013-11-15?20:37??217\Debug\217.exe
?????文件?????430896??2013-11-15?20:37??217\Debug\217.ilk
?????文件??????22692??2013-11-13?12:06??217\Debug\217.obj
?????文件????5492236??2013-11-06?12:24??217\Debug\217.pch
?????文件?????517120??2013-11-15?20:37??217\Debug\217.pdb
?????文件???????7592??2013-11-13?10:59??217\Debug\217.res
?????文件??????14486??2013-11-06?12:24??217\Debug\217Doc.obj
?????文件??????64285??2013-11-15?20:37??217\Debug\217View.obj
?????文件??????19741??2013-11-06?12:24??217\Debug\MainFrm.obj
?????文件?????105464??2013-11-06?12:24??217\Debug\StdAfx.obj
?????文件?????214016??2013-11-15?20:37??217\Debug\vc60.idb
?????文件?????397312??2013-11-15?20:37??217\Debug\vc60.pdb
?????文件???????2504??2013-11-06?12:21??217\MainFrm.cpp
?????文件???????1581??2013-11-06?12:21??217\MainFrm.h
?????文件???????4253??2013-11-06?12:21??217\ReadMe.txt
?????文件???????1078??2013-11-06?12:21??217\res\217.ico
............此處省略12個文件信息
- 上一篇:C++大作業項目報告
- 下一篇:ST語言入門
評論
共有 條評論