www.pudn.com > winnie.rar > winnieView.h


// winnieView.h : interface of the CwinnieView class 
// 
///////////////////////////////////////////////////////////////////////////// 
 
#if !defined(AFX_winnieVIEW_H__1CDCF70F_ABC1_11D7_84A6_0040B850A7EE__INCLUDED_) 
#define AFX_winnieVIEW_H__1CDCF70F_ABC1_11D7_84A6_0040B850A7EE__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
 
 
class CwinnieView : public CView 
{ 
public: 
	int color; 
	int width; 
	int type; 
	int kind;//线的风格和 或 字体的风格 
	int m_step; 
	int sign;//填充的标志 
	void init(); 
	BOOL m_bline; 
public: 
	void Implement(CDC *pDC, CPoint start, CPoint end); 
	void Implement1(CDC *pDC, CPoint start, CPoint end); 
	CPoint m_Startp,m_Endp;  //画直线 
	CPoint  m_centerp,m_aroundp;//circle 
	CPoint  m_top,m_botom;//椭圆 
    CPoint m_up,m_down;                        //矩形 
	CPoint m_lup,m_ldown;//圆角矩形 
	CPoint top,botom,start,end;//弧线 
	CPoint position; 
protected: // create from serialization only 
	CwinnieView(); 
	DECLARE_DYNCREATE(CwinnieView) 
 
// Attributes 
public: 
	CwinnieDoc* GetDocument(); 
 
// Operations 
public: 
 
// Overrides 
	// ClassWizard generated virtual function overrides 
	//{{AFX_VIRTUAL(CwinnieView) 
	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 OnFunDlg( ); 
	 
	void TextOut(CDC *pDC, CString point); 
	void DrawArc(CDC *pDC, CPoint top, CPoint botom, CPoint start, CPoint end); 
	void DrawRoundRect(CDC* pDC, CPoint m_lup, CPoint m_ldown); 
	void Drawrectangle(CDC *pDC, CPoint center, CPoint aroud); 
	void DrawlengthCircle(CDC *pDC, CPoint center, CPoint aroud); 
	void DrawCircle(CDC *pDC, CPoint center, CPoint aroud); 
	void DrawLine(CDC *pDC, CPoint start, CPoint end); 
	virtual ~CwinnieView(); 
    void Fill(); 
	bool fill; 
	int index;  
 
#ifdef _DEBUG 
	virtual void AssertValid() const; 
	virtual void Dump(CDumpContext& dc) const; 
#endif 
 
protected: 
private: 
	 
 
// Generated message map functions 
protected: 
	//{{AFX_MSG(CwinnieView) 
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point); 
	afx_msg void OnMouseMove(UINT nFlags, CPoint point); 
	afx_msg void Online(); 
	afx_msg void Oncircle(); 
	afx_msg void Onroundcircle(); 
	afx_msg void Onrectangle(); 
	afx_msg void Oncirclerectangle(); 
	afx_msg void Onhuxian(); 
	afx_msg void Onchracter(); 
	afx_msg void Onwidth1(); 
	afx_msg void Onwidth2(); 
	afx_msg void Onwidth3(); 
	afx_msg void Onwidth4(); 
	afx_msg void Onzi1(); 
	afx_msg void Onzi2(); 
	afx_msg void Onzi3(); 
	afx_msg void Onkind1(); 
	afx_msg void Onkind2(); 
	afx_msg void Onkind3(); 
	afx_msg void Onkind4(); 
	afx_msg void Onkind5(); 
	afx_msg void Oncolor1(); 
	afx_msg void Oncolor2(); 
	afx_msg void Oncolor3(); 
	afx_msg void Oncolor4(); 
	afx_msg void Oncolor5(); 
	afx_msg void Oncolor6(); 
	afx_msg void Oncolor7(); 
	afx_msg void Oncolor8(); 
	afx_msg void Oncolor9(); 
	afx_msg void Oncolor10(); 
	afx_msg void Onimplement(); 
	afx_msg void Onwidth5(); 
	afx_msg void Oncolor11(); 
	afx_msg void Oncolor12(); 
	afx_msg void Oncolor13(); 
	afx_msg void Oncolor14(); 
	 
 
	afx_msg void Oncolor15(); 
	afx_msg void Oncolor16(); 
	afx_msg void Onw1(); 
	afx_msg void Onw2(); 
	afx_msg void Onw3(); 
	afx_msg void Onw4(); 
	afx_msg void Onw5(); 
	afx_msg void Onw6(); 
 
 
	afx_msg void Onclear(); 
	//}}AFX_MSG 
	DECLARE_MESSAGE_MAP() 
}; 
 
#ifndef _DEBUG  // debug version in winnieView.cpp 
inline CwinnieDoc* CwinnieView::GetDocument() 
   { return (CwinnieDoc*)m_pDocument; } 
#endif 
 
///////////////////////////////////////////////////////////////////////////// 
 
//{{AFX_INSERT_LOCATION}} 
// Microsoft Visual C++ will insert additional declarations immediately before the previous line. 
 
#endif // !defined(AFX_winnieVIEW_H__1CDCF70F_ABC1_11D7_84A6_0040B850A7EE__INCLUDED_)