home *** CD-ROM | disk | FTP | other *** search
/ Media Share 13 / mediashare_13.zip / mediashare_13 / ZIPPED / PROGRAM / WTJ9403.ZIP / OTEXT / OTEXTVW.H < prev    next >
C/C++ Source or Header  |  1994-01-01  |  1KB  |  50 lines

  1. // otextvw.h : interface of the COTextView class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4.  
  5. class COTextView : public CEditView
  6. {
  7. protected: // create from serialization only
  8.     COTextView();
  9.     DECLARE_DYNCREATE(COTextView)
  10.     virtual BOOL PreCreateWindow( CREATESTRUCT& cs );
  11.  
  12. // Attributes
  13. public:
  14.     COTextDoc* GetDocument();
  15.  
  16. // Operations
  17. public:
  18.  
  19. // Implementation
  20. public:
  21.     virtual ~COTextView();
  22.     virtual void OnDraw(CDC* pDC);  // overridden to draw this view
  23. #ifdef _DEBUG
  24.     virtual void AssertValid() const;
  25.     virtual void Dump(CDumpContext& dc) const;
  26. #endif
  27.  
  28. protected:
  29.  
  30.     // Printing support
  31.     virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
  32.     virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
  33.     virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
  34.  
  35. // Generated message map functions
  36. protected:
  37.     //{{AFX_MSG(COTextView)
  38.         // NOTE - the ClassWizard will add and remove member functions here.
  39.         //    DO NOT EDIT what you see in these blocks of generated code !
  40.     //}}AFX_MSG
  41.     DECLARE_MESSAGE_MAP()
  42. };
  43.  
  44. #ifndef _DEBUG  // debug version in otextvw.cpp
  45. inline COTextDoc* COTextView::GetDocument()
  46.    { return (COTextDoc*)m_pDocument; }
  47. #endif
  48.  
  49. /////////////////////////////////////////////////////////////////////////////
  50.