資源簡介
C++對話框類中對閉合區域,點觸填充,簡單方便,占用內存小。

代碼片段和文件信息
//?FillRegion.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“FillRegion.h“
#include?“FillRegionDlg.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CFillRegionApp
BEGIN_MESSAGE_MAP(CFillRegionApp?CWinApp)
//{{AFX_MSG_MAP(CFillRegionApp)
//?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()
/////////////////////////////////////////////////////////////////////////////
//?CFillRegionApp?construction
CFillRegionApp::CFillRegionApp()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CFillRegionApp?object
CFillRegionApp?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CFillRegionApp?initialization
BOOL?CFillRegionApp::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
CFillRegionDlg?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;
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件?????106556??2013-01-02?13:13??MFC閉合區域填充\Debug\FillRegion.exe
?????文件?????191092??2013-01-02?13:13??MFC閉合區域填充\Debug\FillRegion.ilk
?????文件??????13000??2013-01-02?13:13??MFC閉合區域填充\Debug\FillRegion.obj
?????文件????5493172??2013-01-02?13:13??MFC閉合區域填充\Debug\FillRegion.pch
?????文件?????271360??2013-01-02?13:13??MFC閉合區域填充\Debug\FillRegion.pdb
?????文件???????2536??2013-01-02?13:13??MFC閉合區域填充\Debug\FillRegion.res
?????文件??????24703??2013-01-02?13:13??MFC閉合區域填充\Debug\FillRegionDlg.obj
?????文件?????105484??2013-01-02?13:13??MFC閉合區域填充\Debug\StdAfx.obj
?????文件?????205824??2013-01-02?13:13??MFC閉合區域填充\Debug\vc60.idb
?????文件?????364544??2013-01-02?13:13??MFC閉合區域填充\Debug\vc60.pdb
?????文件??????20672??2013-01-02?13:13??MFC閉合區域填充\FillRegion.aps
?????文件???????1068??2013-01-02?14:26??MFC閉合區域填充\FillRegion.clw
?????文件???????2119??2002-05-31?01:36??MFC閉合區域填充\FillRegion.cpp
?????文件???????4231??2002-05-31?01:36??MFC閉合區域填充\FillRegion.dsp
?????文件????????545??2002-05-31?01:36??MFC閉合區域填充\FillRegion.dsw
?????文件???????1368??2002-05-31?01:36??MFC閉合區域填充\FillRegion.h
?????文件??????74752??2013-01-02?14:26??MFC閉合區域填充\FillRegion.ncb
?????文件??????48640??2013-01-02?14:26??MFC閉合區域填充\FillRegion.opt
?????文件???????1617??2013-01-02?13:13??MFC閉合區域填充\FillRegion.plg
?????文件???????5239??2002-05-31?01:49??MFC閉合區域填充\FillRegion.rc
?????文件???????5002??2002-05-31?09:15??MFC閉合區域填充\FillRegionDlg.cpp
?????文件???????1386??2002-05-31?01:36??MFC閉合區域填充\FillRegionDlg.h
?????文件???????3651??2002-05-31?01:36??MFC閉合區域填充\ReadMe.txt
?????文件???????1078??2002-05-31?01:36??MFC閉合區域填充\res\FillRegion.ico
?????文件????????402??2002-05-31?01:36??MFC閉合區域填充\res\FillRegion.rc2
?????文件????????688??2002-05-31?01:40??MFC閉合區域填充\resource.h
?????文件????????212??2002-05-31?01:36??MFC閉合區域填充\StdAfx.cpp
?????文件???????1054??2002-05-31?01:36??MFC閉合區域填充\StdAfx.h
?????目錄??????????0??2013-01-02?13:13??MFC閉合區域填充\Debug
?????目錄??????????0??2005-06-23?15:02??MFC閉合區域填充\res
............此處省略4個文件信息
評論
共有 條評論