home *** CD-ROM | disk | FTP | other *** search
/ Mastering Microsoft Visual C++ 4 (2nd Edition) / VisualC4.ISO / mandel / mandview.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-11-30  |  1.3 KB  |  62 lines

  1. // MandView.h : interface of the CMandelView class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4.  
  5. class CMandelView : public CView
  6. {
  7. private:
  8.    int m_Col;
  9.    int m_ColMax;
  10.    float m_CR;
  11.    float m_DCI;
  12.    float m_DCR;
  13.    int m_RowMax;
  14.  
  15. public:
  16.    void DrawCol ();
  17.  
  18. protected: // create from serialization only
  19.    CMandelView();
  20.    DECLARE_DYNCREATE(CMandelView)
  21.  
  22. // Attributes
  23. public:
  24.    CMandelDoc* GetDocument();
  25.  
  26. // Operations
  27. public:
  28.  
  29. // Overrides
  30.    // ClassWizard generated virtual function overrides
  31.    //{{AFX_VIRTUAL(CMandelView)
  32.    public:
  33.    virtual void OnDraw(CDC* pDC);  // overridden to draw this view
  34.    virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  35.    protected:
  36.    //}}AFX_VIRTUAL
  37.  
  38. // Implementation
  39. public:
  40.    virtual ~CMandelView();
  41. #ifdef _DEBUG
  42.    virtual void AssertValid() const;
  43.    virtual void Dump(CDumpContext& dc) const;
  44. #endif
  45.  
  46. protected:
  47.  
  48. // Generated message map functions
  49. protected:
  50.    //{{AFX_MSG(CMandelView)
  51.    afx_msg void OnSize(UINT nType, int cx, int cy);
  52.    //}}AFX_MSG
  53.    DECLARE_MESSAGE_MAP()
  54. };
  55.  
  56. #ifndef _DEBUG  // debug version in MandView.cpp
  57. inline CMandelDoc* CMandelView::GetDocument()
  58.    { return (CMandelDoc*)m_pDocument; }
  59. #endif
  60.  
  61. /////////////////////////////////////////////////////////////////////////////
  62.