netmeetingdlg.h

来自「Netmeeting是Windows系统自带的网上聊天软件」· C头文件 代码 · 共 93 行

H
93
字号
// NetMeetingDlg.h : header file
//

#if !defined(AFX_NETMEETINGDLG_H__79E68185_84E2_4246_B9BA_C0AD38822F61__INCLUDED_)
#define AFX_NETMEETINGDLG_H__79E68185_84E2_4246_B9BA_C0AD38822F61__INCLUDED_

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

#include "VideoCapture.h"

#include "ListenSocket.h"
#include "ClientSocket.h"


#include "Encoder/libr263.h"
#include "Decoder/tmndec.h"
/////////////////////////////////////////////////////////////////////////////
// CNetMeetingDlg dialog


class CListenSocket;
class CClientSocket;



class CNetMeetingDlg : public CDialog
{
// Construction
private:
	CVideoCapture	*m_pVideoCapture;
	CRect			m_rectClient;
	CRect			m_rect263Video;

	CListenSocket	*m_pSocketListen;
	CSocket			m_socketServer;
	CClientSocket	*m_pSocketClient;
	PBYTE			m_pRevBMP;
	PBYTE			m_pBackBMP;
	Packet			m_sendPacket;
	
	FirstPacket		m_lastFirstPacket;
	FirstPacket		m_firstPacket;
	long			m_lRevSize;
	BOOL			m_bAccept;
	

	CParam cparams;
	unsigned int yuv[ QCIF_WIDTH*QCIF_HEIGHT  + (QCIF_WIDTH*QCIF_HEIGHT)/2 ];
public:
	void InitNetWork();
	void Display263Video(BITMAPINFO &bitmapInfo, PBYTE &pBuffer,int nSize);
	void RecevieData();
	void ServerAccept();
	void Display(BITMAPINFO &bitmapInfo,PBYTE &pBuffer);
	CNetMeetingDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	//{{AFX_DATA(CNetMeetingDlg)
	enum { IDD = IDD_NETMEETING_DIALOG };
	CStatic	m_st263Code;
	CStatic	m_stShowVideo;
	int		m_chClient;
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CNetMeetingDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CNetMeetingDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnStart();
	afx_msg void OnDestroy();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

#endif // !defined(AFX_NETMEETINGDLG_H__79E68185_84E2_4246_B9BA_C0AD38822F61__INCLUDED_)

⌨️ 快捷键说明

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