⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 display.h

📁 一个局域网内语音会议的代码。此代码使用网络的广播地址实现所有客户端语音的聚合。
💻 H
字号:
// Display.h: interface for the Display class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_DISPLAY_H__33C94244_415D_11D6_8886_200654C10000__INCLUDED_)
#define AFX_DISPLAY_H__33C94244_415D_11D6_8886_200654C10000__INCLUDED_

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

#include "mysocket.h"
#include "RecordSound.h"
#include "PlaySound1.h"
#include "WriteSound.h"
#include<afxcmn.h>

#define MAXBUFFER 12


class Display : public CDialog  
{
public:
	CStdioFile log;
	mysocket sockclt;
	CComboBox *cbox;
	RecordSound *record;
	PlaySound1 *play;
	WriteSound *write;
	CString curuser,writeuser;
	char *playmesg;
	//CListBox *from;
	CButton *radio1,*radio2,*start,*stop;
	CAnimateCtrl *anicon,*talk;
	
	LPWAVEHDR playhead[MAXBUFFER];
	int curhead;

	int selectflag;
	int isconnected;
	int isstart;
	int doit;
	
	int sendcount;
	int reccount;
	BOOL success;
	BOOL isSave;

	Display(int n);
	virtual ~Display();
	
	void PreCreateHeader();
	int OnInitDialog();
	void Onconnect();
	void Receive();
	void updateList(CString mesg);
	void OnAbout();
	void OnSave();
	void OnPlay();
	void OnStart();
	void OnStop();
	void OnVolume();
	void OnPaint();
	void OnStartWrite(char *);
	void OnStopWrite();
	int OnEraseBkgnd(CDC *pdc);
	HBRUSH OnCtlColor(CDC *pdc,CWnd *pwnd,UINT ctrl);
	void OnCancel();
	void updateState(BOOL ,BOOL);
	void startRecording();
	void stopRecording();
	void startPlaying();
	void stopPlaying();

	void sendMessage(char *mesg,int length);
	void showFlash();	
DECLARE_MESSAGE_MAP()
};

#endif // !defined(AFX_DISPLAY_H__33C94244_415D_11D6_8886_200654C10000__INCLUDED_)

⌨️ 快捷键说明

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