?? tsdlg.h
字號:
// tsDlg.h : header file
//
#if !defined(AFX_TSDLG_H__FF52AAE6_FDC6_11D9_BC43_000795DF7F99__INCLUDED_)
#define AFX_TSDLG_H__FF52AAE6_FDC6_11D9_BC43_000795DF7F99__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
/////////////////////////////////////////////////////////////////////////////
// CTsDlg dialog
#include "CSocket.h"
#include "LSocket.h"
class CMsg;
class CTsDlg : public CDialog
{
// Construction
public:
CTsDlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CTsDlg)
enum { IDD = IDD_TS_DIALOG };
CStatic m_staNum;
CButton m_btnClose;
CListBox m_listMsg;
CButton m_btnListen;
UINT m_nPort;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CTsDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CTsDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnButtonListen();
afx_msg void OnClose();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
//Attributes
public:
CLSocket* m_pLSocket; //偵聽套接字指針變量
CPtrList m_connList; //連接列表
//Operations
public:
//接受連接請求
void OnAccept();
//獲取客戶機的發送消息
void OnReceive(CCSocket* pSocket);
//向聊天室的所有的客戶轉發消息
void backClients(CMsg* pMsg);
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_TSDLG_H__FF52AAE6_FDC6_11D9_BC43_000795DF7F99__INCLUDED_)
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -