home *** CD-ROM | disk | FTP | other *** search
- // FormDeVw.h : interface of the CFormDemoView class
- //
- /////////////////////////////////////////////////////////////////////////////
-
- class CFormDemoView : public CFormView
- {
- public:
- CBrush m_DialogBrush;
- int m_Intensity;
- CRect m_RectSample;
-
- enum {INT_DARK, INT_LIGHT};
-
- protected: // create from serialization only
- CFormDemoView();
- DECLARE_DYNCREATE(CFormDemoView)
-
- public:
- //{{AFX_DATA(CFormDemoView)
- enum { IDD = IDD_FORMDEMO_FORM };
- BOOL m_Red;
- BOOL m_Green;
- BOOL m_Blue;
- //}}AFX_DATA
-
- // Attributes
- public:
- CFormDemoDoc* GetDocument();
-
- // Operations
- public:
-
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CFormDemoView)
- public:
- virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
- virtual void OnInitialUpdate();
- protected:
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
- virtual void OnDraw(CDC* pDC);
- //}}AFX_VIRTUAL
-
- // Implementation
- public:
- virtual ~CFormDemoView();
- #ifdef _DEBUG
- virtual void AssertValid() const;
- virtual void Dump(CDumpContext& dc) const;
- #endif
-
- protected:
-
- // Generated message map functions
- protected:
- //{{AFX_MSG(CFormDemoView)
- afx_msg void OnOptionsDark();
- afx_msg void OnUpdateOptionsDark(CCmdUI* pCmdUI);
- afx_msg void OnOptionsLight();
- afx_msg void OnUpdateOptionsLight(CCmdUI* pCmdUI);
- afx_msg void OnRed();
- afx_msg void OnGreen();
- afx_msg void OnBlue();
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
-
- #ifndef _DEBUG // debug version in FormDeVw.cpp
- inline CFormDemoDoc* CFormDemoView::GetDocument()
- { return (CFormDemoDoc*)m_pDocument; }
- #endif
-
- /////////////////////////////////////////////////////////////////////////////
-