資源簡介
使用MFC實現的一個簡單的畫圖的工具,里邊介紹了怎么樣畫各種圖形,線條,和顏色的填充的內容……適合初學者使用!
代碼片段和文件信息
//?09308052.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“09308052.h“
#include?“MainFrm.h“
#include?“09308052Doc.h“
#include?“09308052View.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CMy09308052App
BEGIN_MESSAGE_MAP(CMy09308052App?CWinApp)
//{{AFX_MSG_MAP(CMy09308052App)
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()
/////////////////////////////////////////////////////////////////////////////
//?CMy09308052App?construction
CMy09308052App::CMy09308052App()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CMy09308052App?object
CMy09308052App?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CMy09308052App?initialization
BOOL?CMy09308052App::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(CMy09308052Doc)
RUNTIME_CLASS(CMainframe)???????//?main?SDI?frame?window
RUNTIME_CLASS(CMy09308052View));
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
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件??????33424??2009-12-28?23:19??PS\09308052.aps
?????文件???????3361??2009-12-25?23:19??PS\09308052.clw
?????文件???????4273??2009-12-14?16:12??PS\09308052.cpp
?????文件???????4861??2009-12-20?16:32??PS\09308052.dsp
?????文件????????541??2009-12-14?16:12??PS\09308052.dsw
?????文件???????1388??2009-12-14?16:12??PS\09308052.h
?????文件????7506944??2010-07-03?18:23??PS\09308052.ncb
?????文件??????49664??2009-12-25?23:19??PS\09308052.opt
?????文件????????250??2009-12-24?16:37??PS\09308052.plg
?????文件??????13888??2009-12-26?11:09??PS\09308052.rc
?????文件????????881??2009-12-26?09:04??PS\09308052.sln
????..A..H.?????19456??2010-07-03?18:23??PS\09308052.suo
?????文件???????9004??2009-12-26?11:09??PS\09308052.vcproj
?????文件???????1421??2010-07-03?18:23??PS\09308052.vcproj.LuZengHui-PC.LuZengHui.user
?????文件???????1421??2009-12-26?16:20??PS\09308052.vcproj.MaBaoning-PC.MaBaoning.user
?????文件???????1415??2009-12-30?00:17??PS\09308052.vcproj.鹿增輝-PC.鹿增輝.user
?????文件???????1839??2009-12-26?11:20??PS\09308052Doc.cpp
?????文件???????1511??2009-12-14?16:12??PS\09308052Doc.h
?????文件???????7001??2009-12-30?00:16??PS\09308052View.cpp
?????文件???????2485??2009-12-20?18:29??PS\09308052View.h
?????文件???11791360??2009-12-30?00:16??PS\Debug\09308052.bsc
?????文件??????84480??2009-12-30?00:16??PS\Debug\09308052.exe
?????文件????????920??2009-12-26?09:04??PS\Debug\09308052.exe.em
?????文件????????984??2009-12-26?09:04??PS\Debug\09308052.exe.em
?????文件????????861??2009-12-30?00:16??PS\Debug\09308052.exe.intermediate.manifest
?????文件?????378136??2009-12-30?00:16??PS\Debug\09308052.ilk
?????文件??????35557??2009-12-26?09:04??PS\Debug\09308052.obj
?????文件???28639232??2009-12-26?09:04??PS\Debug\09308052.pch
?????文件????3476480??2009-12-30?00:16??PS\Debug\09308052.pdb
?????文件???????9580??2009-12-26?11:09??PS\Debug\09308052.res
............此處省略37個文件信息
評論
共有 條評論