MainView.h
资源名称:视频会议系统.rar [点击查看]
上传用户:popouu88
上传日期:2013-02-11
资源大小:2894k
文件大小:2k
源码类别:
IP电话/视频会议
开发平台:
Visual C++
- #if !defined(AFX_MAINVIEW_H__B35D0DA3_ED64_45C0_B053_BC049BE4AF3A__INCLUDED_)
- #define AFX_MAINVIEW_H__B35D0DA3_ED64_45C0_B053_BC049BE4AF3A__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- // MainView.h : header file
- //
- #include "vfw.h"
- #include "VideoCodec.h"
- class CMainFrame;
- /////////////////////////////////////////////////////////////////////////////
- // CMainView view
- class CMainView : public CScrollView
- {
- public:
- CMainView( CMainFrame * mainFrame );
- virtual ~CMainView();
- bool StartCapture( );
- void StopCapture( );
- bool IsCapture( void ){ return m_bCapture; }
- bool DrawBitmap( char * buffer , int size );
- void DoCommand( char * buffer , int size );
- void DoControl( char * buffer , int size );
- bool m_bControl;
- bool canControl;
- protected:
- static UINT OnCapture( void * pContext );
- //{{AFX_VIRTUAL(CMainView)
- virtual void OnDraw(CDC* pDC){ }
- virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
- virtual LRESULT WindowProc(UINT message, WPARAM wParam, LPARAM lParam);
- //}}AFX_VIRTUAL
- //{{AFX_MSG(CMainView)
- afx_msg void OnPaint(){ CPaintDC dc( this ); }
- afx_msg void OnSize(UINT nType, int cx, int cy);
- afx_msg int OnMouseActivate(CWnd* pDesktopWnd, UINT nHitTest, UINT message);
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- private:
- CMainFrame * mainFrame;
- HDRAWDIB hDraw;
- bool m_bCapture;
- CVideoCodec decode;
- CImageList imglst;
- };
- /////////////////////////////////////////////////////////////////////////////
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_MAINVIEW_H__B35D0DA3_ED64_45C0_B053_BC049BE4AF3A__INCLUDED_)