資源簡介
MFC畫圖板,可以畫一些基本圖形,如直線,橢圓,扇形,矩形,弦形,三角形。
可以保存為BMP的文件。

代碼片段和文件信息
//?Ex_DrawBoard_WPF.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“Ex_DrawBoard_WPF.h“
#include?“MainFrm.h“
#include?“Ex_DrawBoard_WPFDoc.h“
#include?“Ex_DrawBoard_WPFView.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CEx_DrawBoard_WPFApp
BEGIN_MESSAGE_MAP(CEx_DrawBoard_WPFApp?CWinApp)
//{{AFX_MSG_MAP(CEx_DrawBoard_WPFApp)
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()
/////////////////////////////////////////////////////////////////////////////
//?CEx_DrawBoard_WPFApp?construction
CEx_DrawBoard_WPFApp::CEx_DrawBoard_WPFApp()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CEx_DrawBoard_WPFApp?object
CEx_DrawBoard_WPFApp?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CEx_DrawBoard_WPFApp?initialization
BOOL?CEx_DrawBoard_WPFApp::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(CEx_DrawBoard_WPFDoc)
RUNTIME_CLASS(CMainframe)???????//?main?SDI?frame?window
RUNTIME_CLASS(CEx_DrawBoard_WPFView));
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;
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2013-01-16?11:59??Ex_DrawBoard_WPF\
?????目錄???????????0??2013-01-15?18:29??Ex_DrawBoard_WPF\Debug\
?????文件?????3818496??2013-01-14?15:17??Ex_DrawBoard_WPF\Debug\Ex_DrawBoard_WPF.bsc
?????文件??????331867??2013-01-15?18:29??Ex_DrawBoard_WPF\Debug\Ex_DrawBoard_WPF.exe
?????文件??????543560??2013-01-15?18:29??Ex_DrawBoard_WPF\Debug\Ex_DrawBoard_WPF.ilk
?????文件???????23584??2013-01-13?15:54??Ex_DrawBoard_WPF\Debug\Ex_DrawBoard_WPF.obj
?????文件?????7066628??2013-01-12?14:12??Ex_DrawBoard_WPF\Debug\Ex_DrawBoard_WPF.pch
?????文件??????615424??2013-01-15?18:29??Ex_DrawBoard_WPF\Debug\Ex_DrawBoard_WPF.pdb
?????文件??????155340??2013-01-15?18:29??Ex_DrawBoard_WPF\Debug\Ex_DrawBoard_WPF.res
?????文件???????????0??2013-01-13?15:54??Ex_DrawBoard_WPF\Debug\Ex_DrawBoard_WPF.sbr
?????文件???????17066??2013-01-12?14:12??Ex_DrawBoard_WPF\Debug\Ex_DrawBoard_WPFDoc.obj
?????文件???????????0??2013-01-12?14:13??Ex_DrawBoard_WPF\Debug\Ex_DrawBoard_WPFDoc.sbr
?????文件??????110328??2013-01-14?15:17??Ex_DrawBoard_WPF\Debug\Ex_DrawBoard_WPFView.obj
?????文件???????????0??2013-01-14?15:17??Ex_DrawBoard_WPF\Debug\Ex_DrawBoard_WPFView.sbr
?????文件???????23585??2013-01-12?14:12??Ex_DrawBoard_WPF\Debug\MainFrm.obj
?????文件???????????0??2013-01-12?14:13??Ex_DrawBoard_WPF\Debug\MainFrm.sbr
?????文件???????17175??2013-01-12?14:12??Ex_DrawBoard_WPF\Debug\PenWideDlg.obj
?????文件???????????0??2013-01-12?14:13??Ex_DrawBoard_WPF\Debug\PenWideDlg.sbr
?????文件????????1998??2013-01-12?15:12??Ex_DrawBoard_WPF\Debug\Shape.obj
?????文件???????????0??2013-01-12?15:12??Ex_DrawBoard_WPF\Debug\Shape.sbr
?????文件??????106845??2013-01-12?14:12??Ex_DrawBoard_WPF\Debug\StdAfx.obj
?????文件?????1388010??2013-01-12?14:12??Ex_DrawBoard_WPF\Debug\StdAfx.sbr
?????文件??????230400??2013-01-15?18:29??Ex_DrawBoard_WPF\Debug\vc60.idb
?????文件??????405504??2013-01-14?15:17??Ex_DrawBoard_WPF\Debug\vc60.pdb
?????文件??????197012??2013-01-15?18:29??Ex_DrawBoard_WPF\Ex_DrawBoard_WPF.aps
?????文件????????4341??2013-01-16?11:21??Ex_DrawBoard_WPF\Ex_DrawBoard_WPF.clw
?????文件????????4350??2013-01-05?11:03??Ex_DrawBoard_WPF\Ex_DrawBoard_WPF.cpp
?????文件????????5295??2013-01-12?15:22??Ex_DrawBoard_WPF\Ex_DrawBoard_WPF.dsp
?????文件?????????538??2012-12-10?21:14??Ex_DrawBoard_WPF\Ex_DrawBoard_WPF.dsw
?????文件????????1466??2012-12-10?21:14??Ex_DrawBoard_WPF\Ex_DrawBoard_WPF.h
?????文件??????156672??2013-01-16?11:59??Ex_DrawBoard_WPF\Ex_DrawBoard_WPF.ncb
............此處省略26個文件信息
評論
共有 條評論