資源簡介
可以對多邊形的邊數進行選擇,可以保存多邊形數據,具有撤銷和還原功能,可以通過滑動條控制,可以顯示并記錄外切圓和內切圓半徑
代碼片段和文件信息
//?graph.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“graph.h“
#include?“graphDlg.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CGraphApp
BEGIN_MESSAGE_MAP(CGraphApp?CWinApp)
//{{AFX_MSG_MAP(CGraphApp)
//?NOTE?-?the?ClassWizard?will?add?and?remove?mapping?macros?here.
//????DO?NOT?EDIT?what?you?see?in?these?blocks?of?generated?code!
//}}AFX_MSG
ON_COMMAND(ID_HELP?CWinApp::onhelp)
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
//?CGraphApp?construction
CGraphApp::CGraphApp()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CGraphApp?object
CGraphApp?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CGraphApp?initialization
BOOL?CGraphApp::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
CGraphDlg?dlg;
m_pMainWnd?=?&dlg;
int?nResponse?=?dlg.DoModal();
if?(nResponse?==?IDOK)
{
//?TODO:?Place?code?here?to?handle?when?the?dialog?is
//??dismissed?with?OK
}
else?if?(nResponse?==?IDCANCEL)
{
//?TODO:?Place?code?here?to?handle?when?the?dialog?is
//??dismissed?with?Cancel
}
//?Since?the?dialog?has?been?closed?return?FALSE?so?that?we?exit?the
//??application?rather?than?start?the?application‘s?message?pump.
return?FALSE;
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2012-11-16?18:53??多邊形繪制\
?????目錄???????????0??2012-11-16?18:53??多邊形繪制\Debug\
?????文件???????11892??2012-11-16?18:53??多邊形繪制\Debug\BuildLog.htm
?????文件?????7400448??2012-11-16?18:53??多邊形繪制\Debug\graph.bsc
?????文件???????60928??2012-11-16?18:53??多邊形繪制\Debug\graph.exe
?????文件?????????920??2012-11-16?18:53??多邊形繪制\Debug\graph.exe.em
?????文件?????????984??2012-11-16?18:53??多邊形繪制\Debug\graph.exe.em
?????文件?????????861??2012-11-16?18:53??多邊形繪制\Debug\graph.exe.intermediate.manifest
?????文件??????281252??2012-11-16?18:53??多邊形繪制\Debug\graph.ilk
?????文件???????25810??2012-11-16?18:53??多邊形繪制\Debug\graph.obj
?????文件????28639232??2012-11-16?18:53??多邊形繪制\Debug\graph.pch
?????文件?????3369984??2012-11-16?18:53??多邊形繪制\Debug\graph.pdb
?????文件????????2948??2012-09-26?02:25??多邊形繪制\Debug\graph.res
?????文件???????????0??2012-11-16?18:53??多邊形繪制\Debug\graph.sbr
?????文件??????196186??2012-11-16?18:53??多邊形繪制\Debug\graphDlg.obj
?????文件???????????0??2012-11-16?18:53??多邊形繪制\Debug\graphDlg.sbr
?????文件??????????65??2012-11-16?18:53??多邊形繪制\Debug\mt.dep
?????文件??????465799??2012-11-16?18:53??多邊形繪制\Debug\StdAfx.obj
?????文件?????3358137??2012-11-16?18:53??多邊形繪制\Debug\StdAfx.sbr
?????文件??????238592??2012-09-26?19:11??多邊形繪制\Debug\vc60.idb
?????文件??????446464??2012-09-26?18:50??多邊形繪制\Debug\vc60.pdb
?????文件?????1002496??2012-11-16?18:53??多邊形繪制\Debug\vc90.idb
?????文件?????2052096??2012-11-16?18:53??多邊形繪制\Debug\vc90.pdb
?????文件???????21888??2012-09-26?14:07??多邊形繪制\graph.aps
?????文件????????1626??2012-09-27?18:28??多邊形繪制\graph.clw
?????文件????????2049??2012-09-20?10:11??多邊形繪制\graph.cpp
?????文件????????4142??2012-09-20?21:55??多邊形繪制\graph.dsp
?????文件?????????535??2012-09-20?10:34??多邊形繪制\graph.dsw
?????文件????????1313??2012-09-20?10:11??多邊形繪制\graph.h
?????文件????23694336??2012-11-28?20:55??多邊形繪制\graph.ncb
?????文件???????50688??2012-09-27?18:33??多邊形繪制\graph.opt
............此處省略15個文件信息
- 上一篇:C++大學教程第五版課后答案1—24章
- 下一篇:MFC掃雷程序設計完整源碼,文檔
評論
共有 條評論