资源简介
网络爬虫 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画图板绘图并保存图片导出
相关资源
- 国际象棋的qt源代码
- C++中头文件与源文件的作用详解
- C++多线程网络编程Socket
- VC++ 多线程文件读写操作
- 利用C++哈希表的方法实现电话号码查
- 移木块游戏,可以自编自玩,vc6.0编写
- C++纯文字DOS超小RPG游戏
- VC++MFC小游戏实例教程(实例)+MFC类库
- 连铸温度场计算程序(C++)
- 6自由度机器人运动学正反解C++程序
- Em算法(使用C++编写)
- 基于C语言实现的网络爬虫(搜索引擎
- libstdc++-4.4.7-4.el6.i686.rpm
- VC++实现CMD命令执行与获得返回信息
- 白话C++(全)
- C++标准库第1、2
- 大数类c++大数类
- C++语言编写串口调试助手
- c++素数筛选法
- C++ mqtt 用法
- 商品库存管理系统 C++ MFC
- c++ 多功能计算器
- C++17 In Detail
- 嵌入式QtC++编程课件
- 颜色识别形状识别STM103嵌入式代码
- c++ 邮件多附件群发
- c++ 透明代理(hookproxy)
- mfc 调用redis
- FTP客户端源码(c++)
- c++ 画图(14Qt-XPS)
评论
共有 条评论