LINE.h
上传用户:shangwu01
上传日期:2013-04-22
资源大小:707k
文件大小:2k
- // LINE.h: interface for the CLINE class.
- //
- //////////////////////////////////////////////////////////////////////
- #if !defined(AFX_LINE_H__8EAD87E2_8664_466E_B7B9_3937F0DC6836__INCLUDED_)
- #define AFX_LINE_H__8EAD87E2_8664_466E_B7B9_3937F0DC6836__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- class CLINE
- {
- public:
- CLINE();
- virtual ~CLINE();
- class line_data
- {
- public:
- line_data(CPoint m_pointorg,CPoint m_pointfal,int m_line_style,int m_line_width,COLORREF m_line_color);
- virtual ~line_data();
- public:
- CPoint m_pointorg;
- CPoint m_pointfal;
- int m_line_style;
- int m_line_width;
- COLORREF m_line_color;
- };
- public:
- CPtrArray m_line_save;
- public:
- void Line_editdraw(CPoint m_pointorg,CPoint m_pointfal,CDC *pDC);
- void Line_drawMove(CPoint m_pointorg,CPoint m_pointfal,CDC *pDC,int m_line_style,int m_line_width,COLORREF m_line_color);
- void Line_drawAttribution(CDC *pDC);
- void Line_store(CPoint m_pointorg,CPoint m_pointfal,int m_line_style,int m_line_width,COLORREF m_line_color);
- void Line_catchend(CPoint point,CRgn* prgn,CDC *pDC);
- void Line_catchmiddle(CPoint point,CRgn* prgn,CDC *pDC);
- void Line_fillpoint(CPoint point,CDC *pDC);
- void Line_searchend(CPoint point,CPoint *pnearpoint,CRgn* prgn);
- void Line_searchmiddle(CPoint point,CPoint *pnearpoint,CRgn* prgn);
- bool Line_searchline(CPoint point,int *pNum,int *pnStyle,CDC*pmdc);
- bool Line_editselect(CPoint point,CPoint* ppointorg,int Num,int *pselect);
- void Line_editmove(CPoint pointorg,CPoint pointfal,int Num,CDC* pDC);
- void Line_editstore(CPoint pointorg,CPoint pointfal,int Num);
- void Line_editmovestore(CPoint pointorg,CPoint pointfal,int Num);
- void Line_del(int Num);
- };
- #endif // !defined(AFX_LINE_H__8EAD87E2_8664_466E_B7B9_3937F0DC6836__INCLUDED_)