Main Page | File List

TransClientView.h

00001 // TransClientView.h : interface of the CTransClientView class
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: // create from serialization only
00032         CTransClientView();
00033         DECLARE_DYNCREATE(CTransClientView)
00034 
00035 public:
00036         //{{AFX_DATA(CTransClientView)
00037         enum { IDD = IDD_TRANSCLIENT_FORM };
00038         CString m_Info;
00039         //}}AFX_DATA
00040 
00041         CDC *pDC;
00042         int m_Width, m_Height;
00043 
00044 // Attributes
00045 public:
00046         CTransClientDoc* GetDocument();
00047         void init_display();
00048         void exit_display();
00049 
00050 // Operations
00051 public:
00052 
00053 // Overrides
00054         // ClassWizard generated virtual function overrides
00055         //{{AFX_VIRTUAL(CTransClientView)
00056         public:
00057         virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
00058         protected:
00059         virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
00060         virtual void OnInitialUpdate(); // called first time after construct
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         //}}AFX_VIRTUAL
00066 
00067 // Implementation
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 // Generated message map functions
00078 protected:
00079         //{{AFX_MSG(CTransClientView)
00080         afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
00081         //}}AFX_MSG
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 //{{AFX_INSERT_LOCATION}}
00094 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
00095 
00096 #endif // !defined(AFX_TRANSCLIENTVIEW_H__0802B9B1_69AF_4CC5_8052_635B10B55F71__INCLUDED_)

Generated on Mon May 8 22:27:08 2006 by  doxygen 1.3.9.1