00001
00002
00004
00005 #if !defined(AFX_TRANSCLIENTVIEW_H__0802B9B1_69AF_4CC5_8052_635B10B55F71__INCLUDED_)
00006 #define AFX_TRANSCLIENTVIEW_H__0802B9B1_69AF_4CC5_8052_635B10B55F71__INCLUDED_
00007
00008 #if _MSC_VER > 1000
00009 #pragma once
00010 #endif // _MSC_VER > 1000
00011
00012 #include <vfw.h>
00013
00014 #include "Client.h"
00015 #include "DecodingThread.h"
00016 #include "GlobalCon.h"
00017
00018 typedef struct
00019 {
00020 HWND hWnd;
00021 HDC hDC;
00022 HDRAWDIB hDrawDib;
00023 BITMAPINFOHEADER biHeader;
00024 unsigned char *bufRGB;
00025 int width, height;
00026 } T_DISPLAYWINDOW;
00027
00028
00029 class CTransClientView : public CFormView
00030 {
00031 protected:
00032 CTransClientView();
00033 DECLARE_DYNCREATE(CTransClientView)
00034
00035 public:
00036
00037 enum { IDD = IDD_TRANSCLIENT_FORM };
00038 CString m_Info;
00039
00040
00041 CDC *pDC;
00042 int m_Width, m_Height;
00043
00044
00045 public:
00046 CTransClientDoc* GetDocument();
00047 void init_display();
00048 void exit_display();
00049
00050
00051 public:
00052
00053
00054
00055
00056 public:
00057 virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
00058 protected:
00059 virtual void DoDataExchange(CDataExchange* pDX);
00060 virtual void OnInitialUpdate();
00061 virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
00062 virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
00063 virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
00064 virtual void OnPrint(CDC* pDC, CPrintInfo* pInfo);
00065
00066
00067
00068 public:
00069 virtual ~CTransClientView();
00070 #ifdef _DEBUG
00071 virtual void AssertValid() const;
00072 virtual void Dump(CDumpContext& dc) const;
00073 #endif
00074
00075 protected:
00076
00077
00078 protected:
00079
00080 afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
00081
00082 afx_msg void Display(UINT wPara, LONG lPara);
00083 DECLARE_MESSAGE_MAP()
00084 };
00085
00086 #ifndef _DEBUG // debug version in TransClientView.cpp
00087 inline CTransClientDoc* CTransClientView::GetDocument()
00088 { return (CTransClientDoc*)m_pDocument; }
00089 #endif
00090
00092
00093
00094
00095
00096 #endif // !defined(AFX_TRANSCLIENTVIEW_H__0802B9B1_69AF_4CC5_8052_635B10B55F71__INCLUDED_)