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

  1. // FormDeVw.h : interface of the CFormDemoView class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4.  
  5. class CFormDemoView : public CFormView
  6. {
  7. public:
  8.    CBrush m_DialogBrush;
  9.    int m_Intensity;
  10.    CRect m_RectSample;
  11.  
  12.    enum {INT_DARK, INT_LIGHT};
  13.  
  14. protected: // create from serialization only
  15.    CFormDemoView();
  16.    DECLARE_DYNCREATE(CFormDemoView)
  17.  
  18. public:
  19.    //{{AFX_DATA(CFormDemoView)
  20.    enum { IDD = IDD_FORMDEMO_FORM };
  21.    BOOL  m_Red;
  22.    BOOL  m_Green;
  23.    BOOL  m_Blue;
  24.    //}}AFX_DATA
  25.  
  26. // Attributes
  27. public:
  28.    CFormDemoDoc* GetDocument();
  29.  
  30. // Operations
  31. public:
  32.  
  33. // Overrides
  34.    // ClassWizard generated virtual function overrides
  35.    //{{AFX_VIRTUAL(CFormDemoView)
  36.    public:
  37.    virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  38.    virtual void OnInitialUpdate();
  39.    protected:
  40.    virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  41.    virtual void OnDraw(CDC* pDC);
  42.    //}}AFX_VIRTUAL
  43.  
  44. // Implementation
  45. public:
  46.    virtual ~CFormDemoView();
  47. #ifdef _DEBUG
  48.    virtual void AssertValid() const;
  49.    virtual void Dump(CDumpContext& dc) const;
  50. #endif
  51.  
  52. protected:
  53.  
  54. // Generated message map functions
  55. protected:
  56.    //{{AFX_MSG(CFormDemoView)
  57.    afx_msg void OnOptionsDark();
  58.    afx_msg void OnUpdateOptionsDark(CCmdUI* pCmdUI);
  59.    afx_msg void OnOptionsLight();
  60.    afx_msg void OnUpdateOptionsLight(CCmdUI* pCmdUI);
  61.    afx_msg void OnRed();
  62.    afx_msg void OnGreen();
  63.    afx_msg void OnBlue();
  64.    //}}AFX_MSG
  65.    DECLARE_MESSAGE_MAP()
  66. };
  67.  
  68. #ifndef _DEBUG  // debug version in FormDeVw.cpp
  69. inline CFormDemoDoc* CFormDemoView::GetDocument()
  70.    { return (CFormDemoDoc*)m_pDocument; }
  71. #endif
  72.  
  73. /////////////////////////////////////////////////////////////////////////////
  74.