資源簡介
本例是計算機圖形學中的算法,用來進行圖形的填充,是填充算法中的一種算法。
代碼片段和文件信息
//?MainFrm.cpp?:?implementation?of?the?CMainframe?class
//
#include?“stdafx.h“
#include?“SeedFill.h“
#include?“MainFrm.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CMainframe
IMPLEMENT_DYNCREATE(CMainframe?CframeWnd)
BEGIN_MESSAGE_MAP(CMainframe?CframeWnd)
//{{AFX_MSG_MAP(CMainframe)
//?NOTE?-?the?ClassWizard?will?add?and?remove?mapping?macros?here.
//????DO?NOT?EDIT?what?you?see?in?these?blocks?of?generated?code?!
ON_WM_CREATE()
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
static?UINT?indicators[]?=
{
ID_SEPARATOR???????????//?status?line?indicator
ID_INDICATOR_CAPS
ID_INDICATOR_NUM
ID_INDICATOR_SCRL
};
/////////////////////////////////////////////////////////////////////////////
//?CMainframe?construction/destruction
CMainframe::CMainframe()
{
//?TODO:?add?member?initialization?code?here
}
CMainframe::~CMainframe()
{
}
int?CMainframe::OnCreate(LPCREATESTRUCT?lpCreateStruct)
{
if?(CframeWnd::OnCreate(lpCreateStruct)?==?-1)
return?-1;
if?(!m_wndToolBar.CreateEx(this?TBstyle_FLAT?WS_CHILD?|?WS_VISIBLE?|?CBRS_TOP
|?CBRS_GRIPPER?|?CBRS_TOOLTIPS?|?CBRS_FLYBY?|?CBRS_SIZE_DYNAMIC)?||
!m_wndToolBar.LoadToolBar(IDR_MAINframe))
{
TRACE0(“Failed?to?create?toolbar\n“);
return?-1;??????//?fail?to?create
}
if?(!m_wndStatusBar.Create(this)?||
!m_wndStatusBar.SetIndicators(indicators
??sizeof(indicators)/sizeof(UINT)))
{
TRACE0(“Failed?to?create?status?bar\n“);
return?-1;??????//?fail?to?create
}
//?TODO:?Delete?these?three?lines?if?you?don‘t?want?the?toolbar?to
//??be?dockable
m_wndToolBar.EnableDocking(CBRS_ALIGN_ANY);
EnableDocking(CBRS_ALIGN_ANY);
DockControlBar(&m_wndToolBar);
return?0;
}
BOOL?CMainframe::PreCreateWindow(CREATESTRUCT&?cs)
{
if(?!CframeWnd::PreCreateWindow(cs)?)
return?FALSE;
//?TODO:?Modify?the?Window?class?or?styles?here?by?modifying
//??the?CREATESTRUCT?cs
return?TRUE;
}
/////////////////////////////////////////////////////////////////////////////
//?CMainframe?diagnostics
#ifdef?_DEBUG
void?CMainframe::AssertValid()?const
{
CframeWnd::AssertValid();
}
void?CMainframe::Dump(CDumpContext&?dc)?const
{
CframeWnd::Dump(dc);
}
#endif?//_DEBUG
/////////////////////////////////////////////////////////////////////////////
//?CMainframe?message?handlers
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2013-08-29?11:05??SeedFill\
?????目錄???????????0??2013-08-29?11:05??SeedFill\Debug\
?????文件???????20289??2013-08-17?16:40??SeedFill\Debug\MainFrm.obj
?????文件??????118890??2013-08-17?16:40??SeedFill\Debug\SeedFill.exe
?????文件??????314192??2013-08-17?16:40??SeedFill\Debug\SeedFill.ilk
?????文件???????23424??2013-08-17?16:40??SeedFill\Debug\SeedFill.obj
?????文件??????467968??2013-06-04?15:52??SeedFill\Debug\SeedFill.pdb
?????文件????????7320??2013-06-04?15:33??SeedFill\Debug\SeedFill.res
?????文件???????15189??2013-08-17?16:40??SeedFill\Debug\SeedFillDoc.obj
?????文件???????21400??2013-08-17?16:40??SeedFill\Debug\SeedFillView.obj
?????文件????????9318??2013-08-17?16:40??SeedFill\Debug\SeedFillfunc.obj
?????文件??????105968??2013-08-17?16:40??SeedFill\Debug\StdAfx.obj
?????文件??????205824??2013-08-17?16:40??SeedFill\Debug\vc60.idb
?????文件??????364544??2013-06-04?15:52??SeedFill\Debug\vc60.pdb
?????文件????????2509??2013-05-28?16:53??SeedFill\MainFrm.cpp
?????文件????????1581??2013-05-28?16:53??SeedFill\MainFrm.h
?????文件????????4359??2013-05-28?16:53??SeedFill\ReadMe.txt
?????文件???????44492??2013-06-04?12:32??SeedFill\SeedFill.aps
?????文件????????2309??2013-08-17?16:40??SeedFill\SeedFill.clw
?????文件????????4245??2013-05-28?16:53??SeedFill\SeedFill.cpp
?????文件????????4733??2013-05-28?17:01??SeedFill\SeedFill.dsp
?????文件?????????524??2013-05-28?17:01??SeedFill\SeedFill.dsw
?????文件????????1378??2013-05-28?16:53??SeedFill\SeedFill.h
?????文件???????66560??2013-08-17?16:40??SeedFill\SeedFill.ncb
?????文件???????49664??2013-08-17?16:40??SeedFill\SeedFill.opt
?????文件????????2209??2013-08-17?16:40??SeedFill\SeedFill.plg
?????文件???????11713??2013-06-04?12:32??SeedFill\SeedFill.rc
?????文件????????1782??2013-05-28?16:53??SeedFill\SeedFillDoc.cpp
?????文件????????1497??2013-05-28?16:53??SeedFill\SeedFillDoc.h
?????文件????????3031??2013-06-04?15:52??SeedFill\SeedFillView.cpp
?????文件????????1838??2013-05-28?16:55??SeedFill\SeedFillView.h
............此處省略10個文件信息
- 上一篇:對日軟件工程師簡歷模版
- 下一篇:光纖陀螺信號解調代碼
評論
共有 條評論