home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic 4 Power Pack / Visual_Basic4_Power_Pack.bin / vb4files / ilib_vb / mfcview.h_ / mfcview.h
Encoding:
C/C++ Source or Header  |  1996-11-20  |  892 b   |  39 lines

  1. // mfcview.h : interface of the CMfcView class
  2. //
  3.  
  4. class CMfcView : public CScrollView
  5. {
  6. protected: // create from serialization only
  7.     CMfcView();
  8.     DECLARE_DYNCREATE(CMfcView)
  9.  
  10. // Attributes
  11. public:
  12.     CMfcDoc* GetDocument()
  13.         {
  14.             ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CMfcDoc)));
  15.             return (CMfcDoc*) m_pDocument;
  16.         }
  17.  
  18. // Operations
  19. public:
  20.  
  21. // Implementation
  22. public:
  23.     virtual ~CMfcView();
  24.     virtual void OnDraw(CDC* pDC);  // overridden to draw this view
  25.  
  26.     virtual void OnInitialUpdate();
  27.     virtual void OnActivateView(BOOL bActivate, CView* pActivateView,
  28.                     CView* pDeactiveView);
  29.  
  30. // Generated message map functions
  31. protected:
  32.     //{{AFX_MSG(CMfcView)
  33.     afx_msg LRESULT OnDoRealize(WPARAM wParam, LPARAM lParam);  // user message
  34.     //}}AFX_MSG
  35.     DECLARE_MESSAGE_MAP()
  36. };
  37.  
  38. /////////////////////////////////////////////////////////////////////////////
  39.