CAD2006View.h
资源名称:CAD2006.rar [点击查看]
上传用户:ckg1000
上传日期:2013-01-26
资源大小:630k
文件大小:3k
源码类别:
CAD
开发平台:
Visual C++
- // CAD2006View.h : interface of the CCAD2006View class
- //
- /////////////////////////////////////////////////////////////////////////////
- #if !defined(AFX_CAD2006VIEW_H__91ADEF59_5816_4846_83F0_89C66429DCDD__INCLUDED_)
- #define AFX_CAD2006VIEW_H__91ADEF59_5816_4846_83F0_89C66429DCDD__INCLUDED_
- #include "NewEdit.h" // Added by ClassView
- #include "CAD2006Doc.h" // Added by ClassView
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- enum OPENCLOSE{open,close};
- enum BUTTONDOWN{first,second,third};
- class CCAD2006View : public CView
- {
- protected: // create from serialization only
- CCAD2006View();
- DECLARE_DYNCREATE(CCAD2006View)
- // Attributes
- public:
- CCAD2006Doc* GetDocument();
- OPENCLOSE m_openclose;
- BUTTONDOWN m_state;
- // Operations
- public:
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CCAD2006View)
- public:
- virtual void OnDraw(CDC* pDC); // overridden to draw this view
- virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
- protected:
- virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
- virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
- virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
- //}}AFX_VIRTUAL
- // Implementation
- public:
- void ShowShape(CString str);
- bool ZoomLineSelect(CPoint point);
- bool ZoomPolygonSelect(CPoint point);
- bool ZoomTrigonSelect(CPoint point);
- bool EllipseSelect(CPoint point);
- bool PolygonSelect(CPoint point);
- bool RectSelect(CPoint point);
- bool CircleSelect(CPoint point);
- bool LineSelect(CPoint point);
- bool TrigonSelect(CPoint point);
- virtual ~CCAD2006View();
- #ifdef _DEBUG
- virtual void AssertValid() const;
- virtual void Dump(CDumpContext& dc) const;
- #endif
- protected:
- // Generated message map functions
- protected:
- //{{AFX_MSG(CCAD2006View)
- afx_msg void OnMouseMove(UINT nFlags, CPoint point);
- afx_msg BOOL OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message);
- afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
- afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
- afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
- afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
- afx_msg void OnFileSave();
- afx_msg void OnFileOpen();
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
- #ifndef _DEBUG // debug version in CAD2006View.cpp
- inline CCAD2006Doc* CCAD2006View::GetDocument()
- { return (CCAD2006Doc*)m_pDocument; }
- #endif
- /////////////////////////////////////////////////////////////////////////////
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_CAD2006VIEW_H__91ADEF59_5816_4846_83F0_89C66429DCDD__INCLUDED_)