home *** CD-ROM | disk | FTP | other *** search
/ Mastering MFC Development / MMD.ISO / labs / c11 / lab01 / ex01 / browseview.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-02-20  |  1.5 KB  |  59 lines

  1. // browseView.h : interface of the CBrowseView class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4. #include "webbrowser.h"
  5. class CBrowseView : public CView
  6. {
  7. protected: // create from serialization only
  8.     CBrowseView();
  9.     DECLARE_DYNCREATE(CBrowseView)
  10.  
  11. // Attributes
  12. public:
  13.     void OnStatusTextChange(LPCTSTR text);
  14.     void OnTitleChange(LPCTSTR Text);
  15.     CWebBrowser* m_pBrowse;
  16.     CBrowseDoc* GetDocument();
  17.  
  18. // Operations
  19. public:
  20.  
  21. // Overrides
  22.     // ClassWizard generated virtual function overrides
  23.     //{{AFX_VIRTUAL(CBrowseView)
  24.     public:
  25.     virtual void OnDraw(CDC* pDC);  // overridden to draw this view
  26.     protected:
  27.     virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
  28.     virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
  29.     virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
  30.     //}}AFX_VIRTUAL
  31.  
  32. // Implementation
  33. public:
  34.     virtual ~CBrowseView();
  35. #ifdef _DEBUG
  36.     virtual void AssertValid() const;
  37.     virtual void Dump(CDumpContext& dc) const;
  38. #endif
  39.  
  40. protected:
  41.  
  42. // Generated message map functions
  43. protected:
  44.     //{{AFX_MSG(CBrowseView)
  45.     afx_msg void OnShowWindow(BOOL bShow, UINT nStatus);
  46.     afx_msg void OnSize(UINT nType, int cx, int cy);
  47.     afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  48.     //}}AFX_MSG
  49.     DECLARE_MESSAGE_MAP()
  50.     DECLARE_EVENTSINK_MAP()
  51. };
  52.  
  53. #ifndef _DEBUG  // debug version in browseView.cpp
  54. inline CBrowseDoc* CBrowseView::GetDocument()
  55.    { return (CBrowseDoc*)m_pDocument; }
  56. #endif
  57.  
  58. /////////////////////////////////////////////////////////////////////////////
  59.