资源简介
用C++写的网络爬虫程序,结构严谨,适合入门者研究

代码片段和文件信息
// ChildFrm.cpp : implementation of the CChildframe class
//
#include “stdafx.h“
#include “Spider.h“
#include
#include “ThreadParams.h“
#include “ChildFrm.h“
#include “SpiderDoc.h“
#include “SpiderList.h“
#include “SpiderView.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_pNew
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 4409 2008-10-06 06:55 spider\ChildFrm.cpp
文件 1499 1998-05-20 18:13 spider\ChildFrm.h
文件 930 1998-05-25 20:30 spider\COPYRIGHT.txt
文件 25019 2008-10-06 21:37 spider\Debug\ChildFrm.obj
文件 0 2008-10-06 02:55 spider\Debug\ChildFrm.sbr
文件 100034 2008-10-06 21:37 spider\Debug\MainFrm.obj
文件 0 2008-10-06 02:55 spider\Debug\MainFrm.sbr
文件 192555 2008-10-06 21:40 spider\Debug\Spider.exe
文件 31300 2008-10-06 21:37 spider\Debug\Spider.obj
文件 746496 2008-10-06 21:40 spider\Debug\Spider.pdb
文件 11900 2008-10-06 02:34 spider\Debug\Spider.res
文件 0 2008-10-06 02:55 spider\Debug\Spider.sbr
文件 18431 2008-10-06 21:37 spider\Debug\SpiderDoc.obj
文件 0 2008-10-06 02:55 spider\Debug\SpiderDoc.sbr
文件 25509 2008-10-06 21:37 spider\Debug\SpiderList.obj
文件 0 2008-10-06 02:55 spider\Debug\SpiderList.sbr
文件 40957 2008-10-06 02:55 spider\Debug\SpiderView.obj
文件 0 2008-10-06 02:55 spider\Debug\SpiderView.sbr
文件 57957 2008-10-06 02:55 spider\Debug\StdAfx.obj
文件 871510 2008-10-06 02:55 spider\Debug\StdAfx.sbr
文件 112524 2008-10-06 21:37 spider\Debug\Thread.obj
文件 0 2008-10-06 02:55 spider\Debug\Thread.sbr
文件 29333 2008-10-06 21:39 spider\Debug\UrlDlg.obj
文件 0 2008-10-06 02:55 spider\Debug\UrlDlg.sbr
文件 15593 2008-10-06 02:55 spider\Debug\utily.obj
文件 0 2008-10-06 02:55 spider\Debug\utily.sbr
文件 176128 2008-10-06 21:39 spider\Debug\vc60.pdb
文件 20812 1998-05-30 15:08 spider\MainFrm.cpp
文件 2637 1998-05-25 14:13 spider\MainFrm.h
文件 1442 2008-10-04 00:59 spider\read.txt
............此处省略40个文件信息
- 上一篇:MFC实现PopStar小游戏
- 下一篇:C++实现朴素贝叶斯分类器
相关资源
- 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)
- c++多边形交并差运算
评论
共有 条评论