資源簡介
網絡爬蟲 C++ Crawler Spider 有一定的參考價值

代碼片段和文件信息
//?ChildFrm.cpp?:?implementation?of?the?CChildframe?class
//
#include?“stdafx.h“
#include?“Crawler.h“
#include?
#include?“ThreadParams.h“
#include?“ChildFrm.h“
#include?“CrawlerDoc.h“
#include?“CrawlerList.h“
#include?“CrawlerView.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
ON_MESSAGE(WM_USER_LISTOnView)
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
cs.style?=?WS_CHILD?|?WS_VISIBLE?|?WS_OVERLAPPED?|?WS_CAPTION?|?WS_SYSMENU
|?FWS_ADDTOtitle?|?WS_THICKframe?|?WS_MINIMIZEBOX?|?WS_MAXIMIZEBOX?|?WS_MAXIMIZE;
return?CMDIChildWnd::PreCreateWindow(cs);
}
/////////////////////////////////////////////////////////////////////////////
//?CChildframe?diagnostics
#ifdef?_DEBUG
void?CChildframe::AssertValid()?const
{
CMDIChildWnd::AssertValid();
}
void?CChildframe::Dump(CDumpContext&?dc)?const
{
CMDIChildWnd::Dump(dc);
}
#endif?//_DEBUG
/////////////////////////////////////////////////////////////////////////////
//?CChildframe?message?handlers
BOOL?CChildframe::ReplaceView(CRuntimeClass?*?pViewClass)
{
??CCreateContext?context;
??CView?*?pCurrentView;????
??
??//?if?no?active?view?for?the?frame?return?FALSE?because?this?
??//?function?retrieves?the?current?document?from?the?active?view
??if?((pCurrentView=GetActiveView())==NULL)
?????return?FALSE;???????????????
??
??//?If?we‘re?already?displaying?this?kind?of?view?no?need?to?go?
??//?further.?
??if?((pCurrentView->IsKindOf(pViewClass))==TRUE)
?????return?TRUE;
????????????????????????????????????
???//?Get?pointer?to?CDocument?object?so?that?it?can?be?used?in?the?creation?
???//?process?of?the?new?view
???CDocument?*?pDoc=?pCurrentView->GetDocument();
???
????//?set?flag?so?that?document?will?not?be?deleted?when?view?is?destroyed
????BOOL?bAutoDelete=pDoc->m_bAutoDelete;
?? pDoc->m_bAutoDelete=FALSE;????
????//?Delete?existing?view?
????pCurrentView->DestroyWindow();
????//?restore?flag??
????pDoc->m_bAutoDelete=bAutoDelete;
????????????
????????????
????//?Create?new?view?and?redraw
???
???context.m_pNewViewClass=pViewClass;
???context.m_pCurrentDoc=pDoc;
???context.m_pNewDocTemplate=NULL;
???context.m_pLastVi
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????4185??2009-05-30?11:14??Crawler\ChildFrm.cpp
?????文件???????1499??1998-05-20?18:13??Crawler\ChildFrm.h
?????文件????????930??1998-05-25?20:30??Crawler\COPYRIGHT.txt
?????文件?????134308??2009-05-30?12:31??Crawler\Crawler.aps
?????文件???????5687??2009-05-30?11:14??Crawler\Crawler.cpp
?????文件???????1563??2009-05-30?11:14??Crawler\Crawler.h
?????文件???11570176??2009-05-30?12:56??Crawler\Crawler.ncb
?????文件??????15773??2009-05-30?12:56??Crawler\Crawler.rc
?????文件????????688??2009-05-30?11:14??Crawler\Crawler.reg
?????文件????????879??2009-05-30?12:56??Crawler\Crawler.sln
????..A..H.??????7680??2009-05-30?12:56??Crawler\Crawler.suo
?????文件??????10847??2009-05-30?11:14??Crawler\Crawler.vcproj
?????文件???????1411??2009-05-30?12:56??Crawler\Crawler.vcproj.Dark-PC.Allen.user
?????文件???????2794??2009-05-30?11:14??Crawler\CrawlerDoc.cpp
?????文件???????1605??2009-05-30?11:14??Crawler\CrawlerDoc.h
?????文件???????4660??2009-05-30?11:14??Crawler\CrawlerList.cpp
?????文件???????1903??2009-05-30?11:14??Crawler\CrawlerList.h
?????文件???????6634??2009-05-30?11:14??Crawler\CrawlerView.cpp
?????文件???????2045??2009-05-30?11:14??Crawler\CrawlerView.h
?????文件??????20849??2009-05-30?11:14??Crawler\MainFrm.cpp
?????文件???????2638??2009-05-30?11:14??Crawler\MainFrm.h
?????文件???????4544??2009-05-30?11:14??Crawler\ReadMe.txt
?????文件??????99678??2009-05-30?11:26??Crawler\res\Crawler.ico
?????文件????????399??2009-05-30?11:14??Crawler\res\Crawler.rc2
?????文件???????1078??1998-04-30?16:37??Crawler\res\CrawlerDoc.ico
?????文件???????1078??1998-04-30?16:37??Crawler\res\Toolbar.bmp
?????文件???????1608??2009-05-30?11:29??Crawler\resource.h
?????文件????????205??2009-05-30?11:14??Crawler\StdAfx.cpp
?????文件????????974??1998-05-22?18:30??Crawler\StdAfx.h
?????文件??????28524??2009-05-30?11:14??Crawler\Thread.cpp
............此處省略12個文件信息
- 上一篇:mfc實現學生信息管理系統
- 下一篇:MFC畫圖板繪圖并保存圖片導出
評論
共有 條評論