home *** CD-ROM | disk | FTP | other *** search
- // rwmfcvw.h : interface of the CRwView class
- //
- /////////////////////////////////////////////////////////////////////////////
-
- class CRwView:public CView
- {
- protected: // create from serialization only
- CRwView();
- DECLARE_DYNCREATE(CRwView)
-
- // Attributes
- private:
- typedef enum
- {
- rwvNOACTION,
- rwvSPINOBJECT,
- rwvDRAGOBJECT
- }
- MouseMode;
-
- MouseMode m_mouseMode;
- BOOL m_leftButtonDown;
- CPoint m_lastPoint;
- RwClump *m_selectedClump;
-
- public:
- RwInt32 m_cameraMaxWidth;
- RwInt32 m_cameraMaxHeight;
- RwCamera *m_camera;
- CRwDoc *GetDocument();
-
- // Operations
- public:
- void ReRenderView(CDC * dc);
- virtual void OnUpdate(CView * pSender, LPARAM lHint, CObject * pHint);
-
- // Implementation
- public:
- virtual ~ CRwView();
- virtual void OnDraw(CDC * pDC); // overridden to draw this view
- #ifdef _DEBUG
- virtual void AssertValid() const;
- virtual void Dump(CDumpContext & dc) const;
- #endif
-
- protected:
-
- // Printing support
- virtual BOOL OnPreparePrinting(CPrintInfo * pInfo);
- virtual void OnBeginPrinting(CDC * pDC, CPrintInfo * pInfo);
- virtual void OnEndPrinting(CDC * pDC, CPrintInfo * pInfo);
-
- // Generated message map functions
- protected:
- //{{AFX_MSG(CRwView)
- afx_msg void OnSize(UINT nType, int cx, int cy);
- afx_msg BOOL OnEraseBkgnd(CDC * pDC);
- afx_msg void OnAppAboutlibrary();
- afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
- afx_msg void OnMouseMove(UINT nFlags, CPoint point);
- afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
-
- #ifndef _DEBUG // debug version in rwmfcvw.cpp
- inline CRwDoc *CRwView::
- GetDocument()
- {
- return (CRwDoc *) m_pDocument;
- }
- #endif
-
- /////////////////////////////////////////////////////////////////////////////
-