資源簡介
代碼都是編譯通過的,自己實驗課做的,有關于掃描線種子填充算法和基本的種子填充算法,放心下載,如果有什么問題可以相互交流,我也是小白一個。

代碼片段和文件信息
//?MainFrm.cpp?:?implementation?of?the?CMainframe?class
//
#include?“stdafx.h“
#include?“tiger1.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??2020-04-24?09:04??tiger1\
?????目錄???????????0??2020-04-24?08:47??tiger1\Debug\
?????文件???????19635??2020-04-23?15:36??tiger1\Debug\MainFrm.obj
?????文件??????105370??2020-04-23?15:36??tiger1\Debug\StdAfx.obj
?????文件??????131118??2020-04-24?08:47??tiger1\Debug\tiger1.exe
?????文件??????325432??2020-04-24?08:47??tiger1\Debug\tiger1.ilk
?????文件???????22662??2020-04-23?15:36??tiger1\Debug\tiger1.obj
?????文件?????5497452??2020-04-23?15:36??tiger1\Debug\tiger1.pch
?????文件??????451584??2020-04-24?08:47??tiger1\Debug\tiger1.pdb
?????文件????????7276??2020-04-23?15:36??tiger1\Debug\tiger1.res
?????文件???????14435??2020-04-23?15:36??tiger1\Debug\tiger1Doc.obj
?????文件???????62411??2020-04-24?08:47??tiger1\Debug\tiger1View.obj
?????文件??????222208??2020-04-24?08:47??tiger1\Debug\vc60.idb
?????文件??????397312??2020-04-24?08:47??tiger1\Debug\vc60.pdb
?????文件????????2507??2020-04-22?10:41??tiger1\MainFrm.cpp
?????文件????????1581??2020-04-22?10:41??tiger1\MainFrm.h
?????文件????????4311??2020-04-22?10:41??tiger1\ReadMe.txt
?????文件?????????494??2020-04-22?10:41??tiger1\Resource.h
?????文件?????????208??2020-04-22?10:41??tiger1\StdAfx.cpp
?????文件????????1054??2020-04-22?10:41??tiger1\StdAfx.h
?????目錄???????????0??2020-04-22?10:41??tiger1\res\
?????文件????????1078??2020-04-22?10:41??tiger1\res\Toolbar.bmp
?????文件????????1078??2020-04-22?10:41??tiger1\res\tiger1.ico
?????文件?????????398??2020-04-22?10:41??tiger1\res\tiger1.rc2
?????文件????????1078??2020-04-22?10:41??tiger1\res\tiger1Doc.ico
?????文件????????1955??2020-04-22?10:41??tiger1\tiger1.clw
?????文件????????4209??2020-04-22?10:41??tiger1\tiger1.cpp
?????文件????????4555??2020-04-22?10:41??tiger1\tiger1.dsp
?????文件?????????518??2020-04-22?10:41??tiger1\tiger1.dsw
?????文件????????1356??2020-04-22?10:41??tiger1\tiger1.h
?????文件???????58368??2020-04-24?09:04??tiger1\tiger1.ncb
............此處省略7個文件信息
評論
共有 條評論