WBWnd.h
资源名称:视频会议系统.rar [点击查看]
上传用户:popouu88
上传日期:2013-02-11
资源大小:2894k
文件大小:2k
源码类别:
IP电话/视频会议
开发平台:
Visual C++
- // WBWnd.h: interface for the CWBWnd class.
- //
- //////////////////////////////////////////////////////////////////////
- #if !defined(AFX_WBWND_H__1D7C632C_5376_4761_A8EA_ED1C35C6EF7A__INCLUDED_)
- #define AFX_WBWND_H__1D7C632C_5376_4761_A8EA_ED1C35C6EF7A__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- #include "Draw.h"
- class CWBWnd : public CDraw , public CDialog
- {
- public:
- CWBWnd( CDrawView * view , bool m_bRect , bool m_bCapture = true );
- virtual ~CWBWnd( );
- //设定画笔颜色
- virtual void SetColor( COLORREF color = RGB( 0 , 0 , 0 ) ){ }
- //取得画笔颜色
- virtual COLORREF GetColor( void ){ return RGB( 0 , 0 , 0 ); }
- //设定画笔宽度
- virtual void SetWidth( int width = 1 ){ }
- //取得画笔宽度
- virtual int GetWidth( void ){ return 1; }
- //设定画刷是否为空,缺省情况为空
- virtual void SetEmpty( bool m_bEmpty = true ){ }
- //判断画刷是否为空
- virtual bool IsEmpty( void ){ return false; }
- CBitmap * GetBitmap( void );
- virtual void LButtonDown( UINT nFlags , CPoint point );
- virtual void LButtonUp( UINT nFlags , CPoint point );
- virtual void MouseMove( UINT nFlags , CPoint point );
- virtual CDC * Draw( CDC * pDC = NULL );
- protected:
- void CaptureBitmap( void );
- //{{AFX_DATA(CWBWnd)
- //}}AFX_DATA
- //{{AFX_VIRTUAL(CWBWnd)
- virtual void DoDataExchange(CDataExchange* pDX);
- virtual LRESULT WindowProc(UINT message, WPARAM wParam, LPARAM lParam);
- //}}AFX_VIRTUAL
- //{{AFX_MSG(CWBWnd)
- virtual BOOL OnInitDialog();
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP( )
- private:
- bool m_bDown;
- CMemDC * screenDC;
- CDC wndDC;
- CBitmap wndBitmap;
- bool m_bRect;
- };
- #endif // !defined(AFX_WBWND_H__1D7C632C_5376_4761_A8EA_ED1C35C6EF7A__INCLUDED_)