SelectDraw.h
资源名称:视频会议系统.rar [点击查看]
上传用户:popouu88
上传日期:2013-02-11
资源大小:2894k
文件大小:1k
源码类别:
IP电话/视频会议
开发平台:
Visual C++
- // SelectDraw.h: interface for the CSelectDraw class.
- //
- //////////////////////////////////////////////////////////////////////
- #if !defined(AFX_SELECTDRAW_H__6DD36EE9_23A5_402F_986E_11EDE1B48C64__INCLUDED_)
- #define AFX_SELECTDRAW_H__6DD36EE9_23A5_402F_986E_11EDE1B48C64__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- #include "Draw.h"
- class CSelectDraw : public CDraw
- {
- public:
- CSelectDraw( CDrawView * view );
- virtual ~CSelectDraw( );
- //设定画笔颜色
- virtual void SetColor( COLORREF color = RGB( 0 , 0 , 0 ) );
- //取得画笔颜色
- virtual COLORREF GetColor( void );
- //设定画笔宽度
- virtual void SetWidth( int width = 1 );
- //取得画笔宽度
- virtual int GetWidth( void );
- //设定画刷是否为空,缺省情况为空
- virtual void SetEmpty( bool m_bEmpty = true );
- //判断画刷是否为空
- virtual bool IsEmpty( void );
- virtual void LButtonDown( UINT nFlags , CPoint point );
- virtual void MouseMove( UINT nFlags , CPoint point );
- virtual void LButtonUp( UINT nFlags , CPoint point );
- virtual CDC * Draw( CDC * pDC = NULL );
- DRAW_LIST * GetList( void ){ return &draw_list; }
- protected:
- //选择图元
- void Select( void );
- private:
- CRgn selRgn;
- bool m_bErase;
- DRAW_LIST draw_list;
- };
- #endif // !defined(AFX_SELECTDRAW_H__6DD36EE9_23A5_402F_986E_11EDE1B48C64__INCLUDED_)