DrawSysView.h
资源名称:DrawSys.zip [点击查看]
上传用户:mosfetic
上传日期:2022-06-16
资源大小:4612k
文件大小:3k
源码类别:
GDI/图象编程
开发平台:
Visual C++
- // DrawSysView.h : interface of the CDrawSysView class
- //
- /////////////////////////////////////////////////////////////////////////////
- #if !defined(AFX_DRAWSYSVIEW_H__8D005AAE_21FD_471F_BB0B_DE7FE30A18F9__INCLUDED_)
- #define AFX_DRAWSYSVIEW_H__8D005AAE_21FD_471F_BB0B_DE7FE30A18F9__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- class CDrawShape;
- #define WM_CHOOSE (WM_USER+1)
- class CDrawSysView : public CScrollView
- {
- protected: // create from serialization only
- CDrawSysView();
- DECLARE_DYNCREATE(CDrawSysView)
- // Attributes
- public:
- CDrawSysDoc* GetDocument();
- CDrawShape* m_pDrawing;
- int m_iMode; // <0表示选择
- UINT m_nTimer;
- DWORD m_dwNewSel;
- DWORD m_dwOldSel;
- BOOL m_bNeed; //记录闪烁信息,是否需要恢复
- // Operations
- public:
- void MyKillTimer();
- void FlashShape();
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CDrawSysView)
- public:
- virtual void OnDraw(CDC* pDC); // overridden to draw this view
- virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
- virtual void OnInitialUpdate();
- virtual BOOL OnScroll(UINT nScrollCode, UINT nPos, BOOL bDoScroll = TRUE);
- protected:
- virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
- virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
- virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
- virtual BOOL OnScrollBy(CSize sizeScroll, BOOL bDoScroll = TRUE);
- //}}AFX_VIRTUAL
- // Implementation
- public:
- virtual ~CDrawSysView();
- #ifdef _DEBUG
- virtual void AssertValid() const;
- virtual void Dump(CDumpContext& dc) const;
- #endif
- protected:
- // Generated message map functions
- protected:
- //{{AFX_MSG(CDrawSysView)
- afx_msg void OnButtonRect();
- afx_msg void OnMouseMove(UINT nFlags, CPoint point);
- afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
- afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
- afx_msg void OnButtonEllipse();
- afx_msg void OnButtonFillellipse();
- afx_msg void OnButtonCircle();
- afx_msg void OnButtonFillrect();
- afx_msg void OnButtonLine();
- afx_msg LRESULT OnChoose(WPARAM wParam, LPARAM lParam);
- afx_msg void OnTimer(UINT nIDEvent);
- afx_msg void OnDestroy();
- afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
- #ifndef _DEBUG // debug version in DrawSysView.cpp
- inline CDrawSysDoc* CDrawSysView::GetDocument()
- { return (CDrawSysDoc*)m_pDocument; }
- #endif
- /////////////////////////////////////////////////////////////////////////////
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_DRAWSYSVIEW_H__8D005AAE_21FD_471F_BB0B_DE7FE30A18F9__INCLUDED_)