www.pudn.com > GMAIL.rar > GMAILView.h
// GMAILView.h : interface of the CGMAILView class // ///////////////////////////////////////////////////////////////////////////// #if !defined(AFX_GMAILVIEW_H__535100A9_ADE6_406E_877B_32D3A35926C0__INCLUDED_) #define AFX_GMAILVIEW_H__535100A9_ADE6_406E_877B_32D3A35926C0__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 #define SWEEP_BUFFER_SIZE 10000 #includeclass CGMAILView : public CHtmlView { protected: // create from serialization only CGMAILView(); DECLARE_DYNCREATE(CGMAILView) // Attributes public: CGMAILDoc* GetDocument(); CString RanLastName(int max); public: enum DEL_CACHE_TYPE //要删除的类型。 { File,//表示internet临时文件 Cookie //表示Cookie }; //GMAIL数据 CString Lastname; CString Firstname; CString Email;//注册用户名 CString Passwd;//密码 CString Anwer;//答案 UINT Choose;//选择下拉框的数值 bool flag;//防止重复提交判断 UINT ge;//网页注册对象 1为GMAIL,2为EBAY //EBAY特有数据 CString address1;//地址1 CString address2;//地址2 CString city; CString zip; CString countryID; CString dayphone1; CString dayphone2; CString dayphone3; CString dayphone4; CString userid; UINT state; UINT birthdate2; UINT birthdate1; CString birthdate3; //以下为一些,辅助函数. BOOL DeleteUrlCache(DEL_CACHE_TYPE type); BOOL EmptyDirectory(LPCTSTR szPath, BOOL bDeleteDesktopIni = FALSE, BOOL bWipeIndexDat = FALSE); BOOL WipeFile(LPCTSTR szDir, LPCTSTR szFile); // Operations public: // Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CGMAILView) public: virtual void OnDraw(CDC* pDC); // overridden to draw this view virtual BOOL PreCreateWindow(CREATESTRUCT& cs); virtual void OnBeforeNavigate2(LPCTSTR lpszURL, DWORD nFlags, LPCTSTR lpszTargetFrameName, CByteArray& baPostedData, LPCTSTR lpszHeaders, BOOL* pbCancel); virtual void OnProgressChange(long nProgress, long nProgressMax); protected: virtual void OnInitialUpdate(); // called first time after construct //}}AFX_VIRTUAL // Implementation public: virtual ~CGMAILView(); #ifdef _DEBUG virtual void AssertValid() const; virtual void Dump(CDumpContext& dc) const; #endif protected: // 定义ADO连接、命令、记录集变量指针 _ConnectionPtr m_pConnection; _CommandPtr m_pCommand; _RecordsetPtr m_pRecordset; // Generated message map functions protected: //{{AFX_MSG(CGMAILView) afx_msg void OnButtonbrown(); afx_msg void OnEditchangeCombohttp(); afx_msg void OnGo(); afx_msg void OnFur(); afx_msg void OnInput(); afx_msg void OnEditCopy(); afx_msg void OnEditCut(); afx_msg void OnEditPaste(); afx_msg void OnSetInter(); afx_msg void OnGmail(); afx_msg void OnEbay(); afx_msg void OnButtongoback(); afx_msg void OnButtongop(); afx_msg void OnSetCookie(); afx_msg void OnSave(); afx_msg void OnHtm(); //}}AFX_MSG DECLARE_MESSAGE_MAP() }; #ifndef _DEBUG // debug version in GMAILView.cpp inline CGMAILDoc* CGMAILView::GetDocument() { return (CGMAILDoc*)m_pDocument; } #endif ///////////////////////////////////////////////////////////////////////////// //{{AFX_INSERT_LOCATION}} // Microsoft Visual C++ will insert additional declarations immediately before the previous line. #endif // !defined(AFX_GMAILVIEW_H__535100A9_ADE6_406E_877B_32D3A35926C0__INCLUDED_)