-
大小:文件類型: .rar金幣: 1下載: 0 次發(fā)布日期: 2023-08-03
- 語言: 其他
- 標簽: window??網(wǎng)絡(luò)??源代碼??
資源簡介
windows網(wǎng)絡(luò)編程源代碼
代碼片段和文件信息
//?MainFrm.cpp?:?implementation?of?the?CMainframe?class
//
#include?“stdafx.h“
#include?“MyBrowser.h“
#include?“MainFrm.h“
#include?
#include?“MyBrowserView.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CMainframe
IMPLEMENT_DYNCREATE(CMainframe?CframeWnd)
BEGIN_MESSAGE_MAP(CMainframe?CframeWnd)
//{{AFX_MSG_MAP(CMainframe)
//?NOTE?-?the?ClassWizard?will?add?and?remove?mapping?macros?here.
//????DO?NOT?EDIT?what?you?see?in?these?blocks?of?generated?code?!
ON_WM_CREATE()
//}}AFX_MSG_MAP
ON_CBN_SELENDOK(ID_COMBOOnNewAddress)
ON_COMMAND(IDOKOnNewAddressEnter)
END_MESSAGE_MAP()
static?UINT?indicators[]?=
{
ID_SEPARATOR???????????//?status?line?indicator
ID_INDICATOR_CAPS
ID_INDICATOR_NUM
ID_INDICATOR_SCRL
};
/////////////////////////////////////////////////////////////////////////////
//?CMainframe?construction/destruction
CMainframe::CMainframe()
{
//?TODO:?add?member?initialization?code?here
}
CMainframe::~CMainframe()
{
}
int?CMainframe::OnCreate(LPCREATESTRUCT?lpCreateStruct)
{
if?(CframeWnd::OnCreate(lpCreateStruct)?==?-1)
return?-1;
if?(!m_wndRebar.Create(this))??????
{
TRACE0(“Failed?to?create?combobox\n“);
return?-1;??????//?fail?to?create
}
if?(!m_wndAddress.Create(CBS_DROPDOWN?|?WS_CHILD?
?????CRect(0?0?200?120)?this?ID_COMBO))??//創(chuàng)建一下拉組合框
{
TRACE0(“Failed?to?create?combobox\n“);
return?-1;??????//?fail?to?create
}
m_wndRebar.AddBar(&m_wndAddress“地址:“);?
????//把組合框添加到Rebar中,組合框的標題為“地址“
if?(!m_wndStatusBar.Create(this)?||
!m_wndStatusBar.SetIndicators(indicators
??sizeof(indicators)/sizeof(UINT)))
{
TRACE0(“Failed?to?create?status?bar\n“);
return?-1;??????//?fail?to?create
}
//?TODO:?Delete?these?three?lines?if?you?don‘t?want?the?toolbar?to
//??be?dockable
return?0;
}
BOOL?CMainframe::PreCreateWindow(CREATESTRUCT&?cs)
{
if(?!CframeWnd::PreCreateWindow(cs)?)
return?FALSE;
//?TODO:?Modify?the?Window?class?or?styles?here?by?modifying
//??the?CREATESTRUCT?cs
return?TRUE;
}
/////////////////////////////////////////////////////////////////////////////
//?CMainframe?diagnostics
#ifdef?_DEBUG
void?CMainframe::AssertValid()?const
{
CframeWnd::AssertValid();
}
void?CMainframe::Dump(CDumpContext&?dc)?const
{
CframeWnd::Dump(dc);
}
#endif?//_DEBUG
/////////////////////////////////////////////////////////////////////////////
//?CMainframe?message?handlers
void?CMainframe::OnNewAddress()
{
m_wndAddress.GetLBText(m_wndAddress.GetCurSel()?m_strAddress);
Connect();
}
void?CMainframe::OnNewAddressEnter()
{
m_wndAddress.GetEditCtrl()->GetWindowText(m_strAddress);
COMBOBOXEXITEM?item;
item.mask?=?CBEIF_TEXT;
item.iItem?=?-1;
item.pszText?=?(LPTSTR)(LPCTSTR)m_strAddress;
m_wndAddress
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件??????24519??2003-06-03?00:00??《windows網(wǎng)絡(luò)編程源代碼》\chap10\MulThreadHttpSvr\Webpages\IMAGE\df21shoot.jpg
?????文件???????2026??2003-06-03?00:00??《windows網(wǎng)絡(luò)編程源代碼》\chap10\MulThreadHttpSvr\Webpages\IMAGE\P1-1.GIF
?????文件???????2719??2003-06-03?00:00??《windows網(wǎng)絡(luò)編程源代碼》\chap10\MulThreadHttpSvr\Webpages\IMAGE\P1-10.GIF
?????文件???????3959??2003-06-03?00:00??《windows網(wǎng)絡(luò)編程源代碼》\chap10\MulThreadHttpSvr\Webpages\IMAGE\P1-11.GIF
?????文件???????4888??2003-06-03?00:00??《windows網(wǎng)絡(luò)編程源代碼》\chap10\MulThreadHttpSvr\Webpages\IMAGE\P1-13.GIF
?????文件???????1856??2003-06-03?00:00??《windows網(wǎng)絡(luò)編程源代碼》\chap10\MulThreadHttpSvr\Webpages\IMAGE\P1-2.GIF
?????文件???????2758??2003-06-03?00:00??《windows網(wǎng)絡(luò)編程源代碼》\chap10\MulThreadHttpSvr\Webpages\IMAGE\P1-3.GIF
?????文件???????2682??2003-06-03?00:00??《windows網(wǎng)絡(luò)編程源代碼》\chap10\MulThreadHttpSvr\Webpages\IMAGE\P1-4.GIF
?????文件???????3915??2003-06-03?00:00??《windows網(wǎng)絡(luò)編程源代碼》\chap10\MulThreadHttpSvr\Webpages\IMAGE\P1-5.GIF
?????文件???????3512??2003-06-03?00:00??《windows網(wǎng)絡(luò)編程源代碼》\chap10\MulThreadHttpSvr\Webpages\IMAGE\P1-6.GIF
?????文件???????4257??2003-06-03?00:00??《windows網(wǎng)絡(luò)編程源代碼》\chap10\MulThreadHttpSvr\Webpages\IMAGE\P1-7.GIF
?????文件???????3728??2003-06-03?00:00??《windows網(wǎng)絡(luò)編程源代碼》\chap10\MulThreadHttpSvr\Webpages\IMAGE\P1-8.GIF
?????文件???????4033??2003-06-03?00:00??《windows網(wǎng)絡(luò)編程源代碼》\chap10\MulThreadHttpSvr\Webpages\IMAGE\P1-9.GIF
?????文件???????5378??2003-06-03?00:00??《windows網(wǎng)絡(luò)編程源代碼》\chap10\MulThreadHttpSvr\Webpages\IMAGE\PL-12.GIF
????..A.SH.?????????8??2006-09-05?10:54??《windows網(wǎng)絡(luò)編程源代碼》\chap10\MulThreadHttpSvr\Webpages\IMAGE\_desktop.ini
?????文件??????????0??2003-06-03?00:00??《windows網(wǎng)絡(luò)編程源代碼》\chap10\MulThreadHttpSvr\Webpages\post.bat
?????文件?????????77??2003-06-03?00:00??《windows網(wǎng)絡(luò)編程源代碼》\chap10\MulThreadHttpSvr\Webpages\post.htm
?????文件????????832??2003-06-03?00:00??《windows網(wǎng)絡(luò)編程源代碼》\chap10\MulThreadHttpSvr\Webpages\SVRADMIN\BLANK.GIF
?????文件?????????22??2003-06-03?00:00??《windows網(wǎng)絡(luò)編程源代碼》\chap10\MulThreadHttpSvr\Webpages\SVRADMIN\default.bat
?????文件????????882??2003-06-03?00:00??《windows網(wǎng)絡(luò)編程源代碼》\chap10\MulThreadHttpSvr\Webpages\SVRADMIN\FILE.GIF
?????文件????????883??2003-06-03?00:00??《windows網(wǎng)絡(luò)編程源代碼》\chap10\MulThreadHttpSvr\Webpages\SVRADMIN\FOLDER.GIF
?????文件???????2008??2003-06-03?00:00??《windows網(wǎng)絡(luò)編程源代碼》\chap10\MulThreadHttpSvr\Webpages\SVRADMIN\HTTPSVR.GIF
?????文件????????856??2003-06-03?00:00??《windows網(wǎng)絡(luò)編程源代碼》\chap10\MulThreadHttpSvr\Webpages\SVRADMIN\PREV.GIF
????..A.SH.?????????8??2006-09-05?10:54??《windows網(wǎng)絡(luò)編程源代碼》\chap10\MulThreadHttpSvr\Webpages\SVRADMIN\_desktop.ini
????..A.SH.?????????8??2006-09-05?10:54??《windows網(wǎng)絡(luò)編程源代碼》\chap10\MulThreadHttpSvr\Webpages\_desktop.ini
????..A.SH.?????????8??2006-09-05?10:54??《windows網(wǎng)絡(luò)編程源代碼》\chap10\MulThreadHttpSvr\_desktop.ini
?????文件???????9505??2003-06-03?00:00??《windows網(wǎng)絡(luò)編程源代碼》\chap10\WEBQUERY\QUERYDLG.CPP
?????文件???????1595??2003-06-03?00:00??《windows網(wǎng)絡(luò)編程源代碼》\chap10\WEBQUERY\QUERYDLG.H
?????文件???????3600??2003-06-03?00:00??《windows網(wǎng)絡(luò)編程源代碼》\chap10\WEBQUERY\README.TXT
?????文件???????1050??2003-06-03?00:00??《windows網(wǎng)絡(luò)編程源代碼》\chap10\WEBQUERY\RESOURCE.H
............此處省略1084個文件信息
評論
共有 條評論