childview.h

来自「这是在PDA上运行的视频接受」· C头文件 代码 · 共 83 行

H
83
字号
// ChildView.h : interface of the CChildView class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_CHILDVIEW_H__66C41D65_54F6_49EB_BDB3_661F1A0B9B86__INCLUDED_)
#define AFX_CHILDVIEW_H__66C41D65_54F6_49EB_BDB3_661F1A0B9B86__INCLUDED_

#include "DSocket.h"
#include "Decoder/tmndec.h"

#define IMAGE_WIDTH      320
#define IMAGE_HEIGHT     240

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

/////////////////////////////////////////////////////////////////////////////
// CChildView window

class CChildView : public CWnd
{
// Construction
public:
	CChildView();

// Attributes
public:

// Operations
public:

public:
	bool _bStart;
	DSocket _skSend;

	SOCKET  _sVideo;
    HANDLE _hVideo;

    unsigned long _threadId;

	static DWORD WINAPI threadVideo(void* param);

	LPBITMAPINFO _bmpinfo;
    CDC* _pDrawDC;
    void DisplayBt(unsigned char *data);
	void DisplayRemoteFrame(unsigned char *data,int size);

    void RestoreWindow();

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CChildView)
	public:
	virtual BOOL PreTranslateMessage(MSG* pMsg);
	protected:
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	//}}AFX_VIRTUAL

// Implementation
public:
	virtual ~CChildView();

	// Generated message map functions
public:
	bool m_bFull;
	//{{AFX_MSG(CChildView)
	afx_msg void OnPaint();
	afx_msg void OnConConnect();
	afx_msg void OnConDisconnect();
	afx_msg void OnConFullscreen();

	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft eMbedded Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_CHILDVIEW_H__66C41D65_54F6_49EB_BDB3_661F1A0B9B86__INCLUDED_)

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?