资源简介
一个网络爬虫的C++程序,MFC,单对话框

代码片段和文件信息
// 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_pNewDocTemplate=NULL;
context.m_pLastView=N
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 4179 1998-05-30 06:18 ChildFrm.cpp
文件 1499 1998-05-20 18:13 ChildFrm.h
文件 930 1998-05-25 20:30 COPYRIGHT.txt
文件 20812 1998-05-30 15:08 MainFrm.cpp
文件 2637 1998-05-25 14:13 MainFrm.h
文件 4518 1998-04-30 16:37 ReadMe.txt
文件 1613 1998-05-25 14:14 resource.h
文件 1078 1998-04-30 16:37 res\Spider.ico
文件 398 1998-04-30 16:37 res\Spider.rc2
文件 1078 1998-04-30 16:37 res\SpiderDoc.ico
文件 1078 1998-04-30 16:37 res\Toolbar.bmp
文件 49708 1998-05-25 14:33 Spider.aps
文件 3680 1998-05-25 14:27 Spider.clw
文件 5657 1998-05-30 06:19 Spider.cpp
文件 5331 1998-05-25 20:57 Spider.dsp
文件 535 1998-04-30 16:37 Spider.dsw
文件 1552 1998-05-30 06:15 Spider.h
文件 11511 1998-05-30 06:03 Spider.htm
文件 49664 1998-05-30 15:08 Spider.opt
文件 1966 1998-05-30 06:20 Spider.plg
文件 15668 1998-05-25 14:33 Spider.rc
文件 680 1998-04-30 16:37 Spider.reg
文件 2760 1998-05-19 20:12 SpiderDoc.cpp
文件 1593 1998-05-19 19:38 SpiderDoc.h
文件 4623 1998-05-30 06:16 SpiderList.cpp
文件 1887 1998-05-19 20:14 SpiderList.h
文件 6594 1998-05-30 06:18 SpiderView.cpp
文件 2028 1998-05-19 19:11 SpiderView.h
文件 204 1998-04-30 16:37 StdAfx.cpp
文件 974 1998-05-22 18:30 StdAfx.h
文件 28493 1998-05-30 15:08 Thread.cpp
............此处省略9个文件信息
- 上一篇:MFC必用的CwImage库
- 下一篇:基于tcp的聊天程序c语言的
相关资源
- C++中头文件与源文件的作用详解
- C++多线程网络编程Socket
- VC++ 多线程文件读写操作
- C语言代码高亮html输出工具
- 猜数字游戏 c语言代码
- 利用C++哈希表的方法实现电话号码查
- 移木块游戏,可以自编自玩,vc6.0编写
- C流程图生成器,用C语言代码 生成C语
- C++纯文字DOS超小RPG游戏
- 小甲鱼C语言课件 源代码
- 学校超市选址问题(数据结构C语言版
- VC++MFC小游戏实例教程(实例)+MFC类库
- c语言看发的网络协议 ,源代码
- LU分解法解线性方程组的C语言代码
- 手机话费管理系统(c语言编写)
- C语言实现的DES对称加密算法
- 数据结构,迷宫问题C语言版源代码
- C语言 学生信息管理系统 源代码
- C语言版3D魔方游戏源代码
- 编译原理实验-词法分析(c语言代码)
- C语言中 文件读取和写入的详细操作代
- 连铸温度场计算程序(C++)
- 6自由度机器人运动学正反解C++程序
- Em算法(使用C++编写)
- 基于C语言实现的网络爬虫(搜索引擎
- libstdc++-4.4.7-4.el6.i686.rpm
- VC++实现CMD命令执行与获得返回信息
- 白话C++(全)
- C++标准库第1、2
- 大数类c++大数类
评论
共有 条评论