📄 meetingdoc.h
字号:
// MeetingDoc.h : interface of the CMeetingDoc class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_MEETINGDOC_H__5124473E_0552_4ED9_AFB6_9B5E63F7521F__INCLUDED_)
#define AFX_MEETINGDOC_H__5124473E_0552_4ED9_AFB6_9B5E63F7521F__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "socket.h"
#include "TalkDlg.h"
class CShape;
class COrder;
class CMeetingView;
class CMeetingDoc : public CDocument
{
protected: // create from serialization only
CMeetingDoc();
DECLARE_DYNCREATE(CMeetingDoc)
// Attributes
public:
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CMeetingDoc)
public:
virtual BOOL OnNewDocument();
virtual void Serialize(CArchive& ar);
virtual void DeleteContents();
//}}AFX_VIRTUAL
// Implementation
public:
CTypedPtrList<CObList,CShape*> m_shapeList;
CTypedPtrList<CObList,CShape*> m_tempList;
DrawFlag m_shapeCur;
UINT m_nPenWidth;
CPen m_penCur;
CBrush m_brushCur;
COLORREF m_colorPen;
COLORREF m_colorFill;
BOOL m_bFill;
CMeetingView* m_pView;
CTalkDlg* m_pTalkDlg;
CListenSocket* m_socketListen;
CClientSocket* m_socketClient;
CPtrList m_listClient;
BOOL m_bIsServer;
BOOL m_bIsClient;
CString m_strUserName;
int m_nMaxUser;
BOOL m_bPhone;
UINT m_nSex;
int DataBlock;
int MaxDataBlock;
int CurrentBlock;
virtual ~CMeetingDoc();
void CloseSocket(CClientSocket* pSocket);
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
//{{AFX_MSG(CMeetingDoc)
afx_msg void OnDrawHand();
afx_msg void OnUpdateDrawHand(CCmdUI* pCmdUI);
afx_msg void OnDrawLine();
afx_msg void OnUpdateDrawLine(CCmdUI* pCmdUI);
afx_msg void OnDrawRectangle();
afx_msg void OnUpdateDrawRectangle(CCmdUI* pCmdUI);
afx_msg void OnDrawPick();
afx_msg void OnUpdateDrawPick(CCmdUI* pCmdUI);
afx_msg void OnDrawCircle();
afx_msg void OnUpdateDrawCircle(CCmdUI* pCmdUI);
afx_msg void OnNetCreate();
afx_msg void OnUpdateNetCreate(CCmdUI* pCmdUI);
afx_msg void OnNetConnect();
afx_msg void OnUpdateNetConnect(CCmdUI* pCmdUI);
afx_msg void OnNetHandup();
afx_msg void OnUpdateNetHandup(CCmdUI* pCmdUI);
afx_msg void OnNetBreak();
afx_msg void OnUpdateNetBreak(CCmdUI* pCmdUI);
afx_msg void OnDrawClear();
afx_msg void OnDrawSetup();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
public:
TrashCollect(CShape* pShape);
void ProcessMsg(CShape* &pShape,CClientSocket* pSocket);
void PlayAudio(int len,char* buf);
ClearAll();
BroadcastMsg(CShape* pShape);
LogOut(CShape* pOrder);
void UserRegister(CShape* pOrder,CClientSocket* pSocket);
void AcceptClient();
void ReceiveData(CClientSocket* pSocket);
CPen* GetCurrentPen()
{
return &m_penCur;
}
static void CALLBACK waveInProc(HWAVEIN hwi, UINT uMsg, WORD dwInstance,
WAVEHDR* dwParam1, DWORD dwParam2);
static void CALLBACK waveOutProc(HWAVEOUT hwo, UINT uMsg, WORD dwInstance,
WAVEHDR* dwParam1, DWORD dwParam2);
void _stdcall ClosePhone() ;
long _stdcall StartPhone() ;
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_MEETINGDOC_H__5124473E_0552_4ED9_AFB6_9B5E63F7521F__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -