SampleBrowerView.h
上传用户:yideyibiao
上传日期:2015-08-20
资源大小:41k
文件大小:2k
源码类别:

Internet/IE编程

开发平台:

Visual C++

  1. // SampleBrowerView.h : interface of the CSampleBrowerView class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4. #if !defined(AFX_SAMPLEBROWERVIEW_H__8B48F780_F538_4881_A3D7_A45E7C44EF8E__INCLUDED_)
  5. #define AFX_SAMPLEBROWERVIEW_H__8B48F780_F538_4881_A3D7_A45E7C44EF8E__INCLUDED_
  6. #if _MSC_VER > 1000
  7. #pragma once
  8. #endif // _MSC_VER > 1000
  9. class CSampleBrowerDoc;
  10. class CSampleBrowerView : public CHtmlView
  11. {
  12. protected: // create from serialization only
  13. CSampleBrowerView();
  14. DECLARE_DYNCREATE(CSampleBrowerView)
  15. // Attributes
  16. public:
  17. CSampleBrowerDoc* GetDocument();
  18. // Operations
  19. public:
  20. // Overrides
  21. // ClassWizard generated virtual function overrides
  22. //{{AFX_VIRTUAL(CSampleBrowerView)
  23. public:
  24. virtual void OnDraw(CDC* pDC);  // overridden to draw this view
  25. virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  26. virtual void OnDocumentComplete(LPCTSTR lpszURL);
  27. protected:
  28. virtual void OnInitialUpdate(); // called first time after construct
  29. //}}AFX_VIRTUAL
  30. // Implementation
  31. public:
  32. virtual ~CSampleBrowerView();
  33. #ifdef _DEBUG
  34. virtual void AssertValid() const;
  35. virtual void Dump(CDumpContext& dc) const;
  36. #endif
  37. protected:
  38. // Generated message map functions
  39. protected:
  40. //{{AFX_MSG(CSampleBrowerView)
  41. afx_msg void OnGoForward();
  42. afx_msg void OnGoBack();
  43. afx_msg void OnGoRefresh();
  44. afx_msg void OnGoSerach();
  45. afx_msg void OnGoStop();
  46. afx_msg void OnStartPage();
  47. //}}AFX_MSG
  48. DECLARE_MESSAGE_MAP()
  49. };
  50. #ifndef _DEBUG  // debug version in SampleBrowerView.cpp
  51. inline CSampleBrowerDoc* CSampleBrowerView::GetDocument()
  52.    { return (CSampleBrowerDoc*)m_pDocument; }
  53. #endif
  54. /////////////////////////////////////////////////////////////////////////////
  55. //{{AFX_INSERT_LOCATION}}
  56. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  57. #endif // !defined(AFX_SAMPLEBROWERVIEW_H__8B48F780_F538_4881_A3D7_A45E7C44EF8E__INCLUDED_)