FullViewBtn.h
资源名称:44757463.rar [点击查看]
上传用户:lj3531212
上传日期:2007-06-18
资源大小:346k
文件大小:2k
源码类别:
绘图程序
开发平台:
Visual C++
- #if !defined(AFX_FULLVIEWBTN_H__C1AB449A_553A_4505_A5B3_FE6F9449BA61__INCLUDED_)
- #define AFX_FULLVIEWBTN_H__C1AB449A_553A_4505_A5B3_FE6F9449BA61__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- // FullViewBtn.h
- //
- #include "afxtempl.h"
- #include "GraphSoftView.h"
- #include "GraphSoftDoc.h"
- #include "Shape.h"
- /////////////////////////////////////////////////////////////////////////////
- // CFullViewBtn
- class CFullViewBtn : public CButton
- {
- //
- public:
- CFullViewBtn();
- //
- public:
- //CGraphSoftDoc* pDoc;
- // CView* m_pView;
- CFlRect m_targetrect;//add by handwolf 2004_04_15
- float m_flRatio;
- CRect m_size ;
- CFlRect m_MaxRect;
- CPoint m_pt ;
- CPoint m_ptw ;
- BOOL m_leftbutton ;
- public:
- void DrawGraph(CDC* pDC,CRect rect);
- //
- // ClassWizard
- //{{AFX_VIRTUAL(CFullViewBtn)
- public:
- //}}AFX_VIRTUAL
- //
- public:
- virtual ~CFullViewBtn();
- //
- protected:
- //{{AFX_MSG(CFullViewBtn)
- afx_msg void OnClicked();
- afx_msg BOOL OnEraseBkgnd(CDC* pDC);
- afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
- afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point);
- afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
- afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
- afx_msg void OnMouseMove(UINT nFlags, CPoint point);
- afx_msg void OnPaint();
- afx_msg void OnRButtonUp(UINT nFlags, CPoint point);
- afx_msg void OnDoubleclicked();
- afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
- /////////////////////////////////////////////////////////////////////////////
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++
- #endif // !defined(AFX_FULLVIEWBTN_H__C1AB449A_553A_4505_A5B3_FE6F9449BA61__INCLUDED_)