資源簡介
花了幾天把程序框架做了出來,自認比DrawCLI的稍微好一點點。支持基本圖形繪制,旋轉,縮放,串行化。使用MFC、STL、GDI/GDI+和一點點設計模式。
代碼片段和文件信息
//?ChildFrm.cpp?:?implementation?of?the?CChildframe?class
//
#include?“stdafx.h“
#include?“OD.h“
#include?“ChildFrm.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CChildframe
IMPLEMENT_DYNCREATE(CChildframe?CMDIChildWnd)
BEGIN_MESSAGE_MAP(CChildframe?CMDIChildWnd)
//{{AFX_MSG_MAP(CChildframe)
//?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
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
//?CChildframe?construction/destruction
CChildframe::CChildframe()
{
//?TODO:?add?member?initialization?code?here
}
CChildframe::~CChildframe()
{
}
BOOL?CChildframe::PreCreateWindow(CREATESTRUCT&?cs)
{
//?TODO:?Modify?the?Window?class?or?styles?here?by?modifying
//??the?CREATESTRUCT?cs
if(?!CMDIChildWnd::PreCreateWindow(cs)?)
return?FALSE;
return?TRUE;
}
/////////////////////////////////////////////////////////////////////////////
//?CChildframe?diagnostics
#ifdef?_DEBUG
void?CChildframe::AssertValid()?const
{
CMDIChildWnd::AssertValid();
}
void?CChildframe::Dump(CDumpContext&?dc)?const
{
CMDIChildWnd::Dump(dc);
}
#endif?//_DEBUG
/////////////////////////////////////////////////////////////////////////////
//?CChildframe?message?handlers
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????4201??2008-02-02?11:20??ODRect.cpp
?????文件???????1051??2008-01-29?15:45??ODRect.h
?????文件???????4057??2008-02-02?16:06??ODSelectTool.cpp
?????文件????????922??2008-02-01?16:53??ODSelectTool.h
?????文件???????7701??2008-02-02?17:13??ODShape.cpp
?????文件???????1746??2008-02-02?17:13??ODShape.h
?????文件???????1190??2008-01-29?09:37??ODShapeTool.cpp
?????文件????????969??2008-01-29?09:39??ODShapeTool.h
?????文件???????2471??2008-01-31?09:40??ODToolKit.cpp
?????文件???????1279??2008-01-16?16:00??ODToolKit.h
?????文件???????6636??2008-01-29?15:36??ODView.cpp
?????文件???????2537??2008-01-22?15:57??ODView.h
?????文件???????4658??2000-01-10?17:17??ReadMe.txt
?????文件????????959??2008-01-29?16:07??resource.h
?????文件????????204??2000-01-10?17:17??StdAfx.cpp
?????文件????????999??2008-01-11?11:57??StdAfx.h
?????目錄??????????0??2008-04-10?15:34??Release
?????文件??????61440??2008-02-17?09:59??Release\OD.exe
?????目錄??????????0??2008-04-10?15:34??res
?????文件???????1270??2008-01-22?09:58??res\bitmap1.bmp
?????文件????????326??2008-01-16?18:34??res\cursor_rotate.cur
?????文件???????1078??2000-01-10?17:17??res\OD.ico
?????文件????????394??2000-01-10?17:17??res\OD.rc2
?????文件???????1078??2000-01-10?17:17??res\ODDoc.ico
?????文件????????326??2008-01-16?18:34??res\rotating.cur
?????文件???????1782??2008-01-16?17:39??res\Toolbar.bmp
?????文件???????1529??2000-01-10?17:17??ChildFrm.cpp
?????文件???????1397??2000-01-10?17:17??ChildFrm.h
?????文件???????2874??2008-01-28?17:33??compgeo.h
?????文件???????2519??2000-01-10?17:17??MainFrm.cpp
............此處省略19個文件信息
- 上一篇:WinAPI 函數庫(大全)
- 下一篇:見過的最好 英語語法講義
評論
共有 條評論