www.pudn.com > Jianasyhttpclient.rar > asyhttpclientView.cpp


// asyhttpclientView.cpp : implementation of the CAsyhttpclientView class 
// 
 
#include "stdafx.h" 
#include "asyhttpclient.h" 
 
#include "asyhttpclientDoc.h" 
#include "asyhttpclientView.h" 
 
#ifdef _DEBUG 
#define new DEBUG_NEW 
#undef THIS_FILE 
static char THIS_FILE[] = __FILE__; 
#endif 
 
///////////////////////////////////////////////////////////////////////////// 
// CAsyhttpclientView 
 
IMPLEMENT_DYNCREATE(CAsyhttpclientView, CEditView) 
 
BEGIN_MESSAGE_MAP(CAsyhttpclientView, CEditView) 
	//{{AFX_MSG_MAP(CAsyhttpclientView) 
		// 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 
	// Standard printing commands 
	ON_COMMAND(ID_FILE_PRINT, CEditView::OnFilePrint) 
	ON_COMMAND(ID_FILE_PRINT_DIRECT, CEditView::OnFilePrint) 
	ON_COMMAND(ID_FILE_PRINT_PREVIEW, CEditView::OnFilePrintPreview) 
END_MESSAGE_MAP() 
 
///////////////////////////////////////////////////////////////////////////// 
// CAsyhttpclientView construction/destruction 
 
CAsyhttpclientView::CAsyhttpclientView() 
{ 
	// TODO: add construction code here 
 
} 
 
CAsyhttpclientView::~CAsyhttpclientView() 
{ 
} 
 
BOOL CAsyhttpclientView::PreCreateWindow(CREATESTRUCT& cs) 
{ 
	// TODO: Modify the Window class or styles here by modifying 
	//  the CREATESTRUCT cs 
 
	BOOL bPreCreated = CEditView::PreCreateWindow(cs); 
	cs.style &= ~(ES_AUTOHSCROLL|WS_HSCROLL);	// Enable word-wrapping 
 
	return bPreCreated; 
} 
 
///////////////////////////////////////////////////////////////////////////// 
// CAsyhttpclientView drawing 
 
void CAsyhttpclientView::OnDraw(CDC* pDC) 
{ 
	CAsyhttpclientDoc* pDoc = GetDocument(); 
	ASSERT_VALID(pDoc); 
	// TODO: add draw code for native data here 
} 
 
///////////////////////////////////////////////////////////////////////////// 
// CAsyhttpclientView printing 
 
BOOL CAsyhttpclientView::OnPreparePrinting(CPrintInfo* pInfo) 
{ 
	// default CEditView preparation 
	return CEditView::OnPreparePrinting(pInfo); 
} 
 
void CAsyhttpclientView::OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo) 
{ 
	// Default CEditView begin printing. 
	CEditView::OnBeginPrinting(pDC, pInfo); 
} 
 
void CAsyhttpclientView::OnEndPrinting(CDC* pDC, CPrintInfo* pInfo) 
{ 
	// Default CEditView end printing 
	CEditView::OnEndPrinting(pDC, pInfo); 
} 
 
///////////////////////////////////////////////////////////////////////////// 
// CAsyhttpclientView diagnostics 
 
#ifdef _DEBUG 
void CAsyhttpclientView::AssertValid() const 
{ 
	CEditView::AssertValid(); 
} 
 
void CAsyhttpclientView::Dump(CDumpContext& dc) const 
{ 
	CEditView::Dump(dc); 
} 
 
CAsyhttpclientDoc* CAsyhttpclientView::GetDocument() // non-debug version is inline 
{ 
	ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CAsyhttpclientDoc))); 
	return (CAsyhttpclientDoc*)m_pDocument; 
} 
#endif //_DEBUG 
 
///////////////////////////////////////////////////////////////////////////// 
// CAsyhttpclientView message handlers