display.h
来自「一个局域网内语音会议的代码。此代码使用网络的广播地址实现所有客户端语音的聚合。」· C头文件 代码 · 共 81 行
H
81 行
// 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 + =
减小字号Ctrl + -
显示快捷键?