www.pudn.com > Jianasyhttpclient.rar > MainFrm.h


// MainFrm.h : interface of the CMainFrame class 
// 
///////////////////////////////////////////////////////////////////////////// 
 
#include "HttpAsySocket.h" 
#include "ToolBar2.h" 
 
#if !defined(AFX_MAINFRM_H__15599108_A11A_11D4_A1B1_8B0DD173B218__INCLUDED_) 
#define AFX_MAINFRM_H__15599108_A11A_11D4_A1B1_8B0DD173B218__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
 
 
class CMainFrame : public CFrameWnd 
{	 
protected: // create from serialization only 
	CMainFrame(); 
	DECLARE_DYNCREATE(CMainFrame) 
     
 
// Attributes 
public: 
    CString m_strObject; 
	CHttpAsySocket *m_HttpSocket; 
	CString m_strURL; 
    int m_chkpost,m_chkget,m_chkoptions; 
 
// Operations 
public: 
 
// Overrides 
	// ClassWizard generated virtual function overrides 
	//{{AFX_VIRTUAL(CMainFrame) 
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs); 
	//}}AFX_VIRTUAL 
 
// Implementation 
public: 
     
    //工具栏有关的操作函数 
    int GetItemNumber() {return m_wndToolBar.m_Combo.GetCurSel();}  
 
	virtual ~CMainFrame(); 
#ifdef _DEBUG 
	virtual void AssertValid() const; 
	virtual void Dump(CDumpContext& dc) const; 
#endif 
 
protected:  // control bar embedded members 
	CStatusBar  m_wndStatusBar; 
	//修改后的工具栏 
	CToolBar2    m_wndToolBar;    
 
// Generated message map functions 
protected: 
	//{{AFX_MSG(CMainFrame) 
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct); 
	afx_msg void OnConnect(); 
	afx_msg void OnGo(); 
	afx_msg void OnPost(); 
	afx_msg void OnUpdatePost(CCmdUI* pCmdUI); 
	afx_msg void OnGet(); 
	afx_msg void OnUpdateGet(CCmdUI* pCmdUI); 
	afx_msg void OnOptions(); 
	afx_msg void OnUpdateOptions(CCmdUI* pCmdUI); 
	//}}AFX_MSG 
	DECLARE_MESSAGE_MAP() 
}; 
 
///////////////////////////////////////////////////////////////////////////// 
 
//{{AFX_INSERT_LOCATION}} 
// Microsoft Visual C++ will insert additional declarations immediately before the previous line. 
 
#endif // !defined(AFX_MAINFRM_H__15599108_A11A_11D4_A1B1_8B0DD173B218__INCLUDED_)