📄 serverdlg.h
字号:
// ServerDlg.h : header file
#if !defined(AFX_SERVDLG_H__B7C54BC9_A555_11D0_8996_00AA00B92B2E__INCLUDED_)
#define AFX_SERVDLG_H__B7C54BC9_A555_11D0_8996_00AA00B92B2E__INCLUDED_
#include "ListenSocket.h" // Added by ClassView
#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000
#include <afxtempl.h>
#include "ClientThread.h"
class CServerDlg : public CDialog
{
// Construction
public:
CString m_strDefaultPage;
CString m_strWebPages;
// used to synchronize updating m_lastString
CCriticalSection m_CriticalSection;
// list of thread pointers
CTypedPtrList<CObList, CClientThread*> m_ThreadList;
void AddTraceLine(DWORD dwThreadID, LPCTSTR pstrFormat, ...);
int m_nOpenConnections;
// socket member that listens for new connections
CListenSocket m_ListenSocket;
CServerDlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CServerDlg)
enum { IDD = IDD_SERV_DIALOG };
CListCtrl m_TraceList;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CServerDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
int m_nPort;
BOOL m_bAutoStart;
BOOL m_bInitialized;
BOOL CreateBars();
CToolBar m_wndToolBar;
CStatusBar m_wndStatusBar;
BOOL m_bRunning;
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CServerDlg)
virtual void OnOK();
virtual void OnCancel();
virtual BOOL OnInitDialog();
afx_msg void OnServerStart();
afx_msg void OnServerStop();
afx_msg void OnServerExit();
afx_msg void OnInitMenu(CMenu* pMenu);
afx_msg void OnClose();
afx_msg void OnAbout();
afx_msg void OnStart();
afx_msg void OnStop();
afx_msg void OnSize(UINT nType, int cx, int cy);
afx_msg void OnSettings();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
//}}AFX_MSG
LRESULT OnThreadStart(WPARAM, LPARAM);
LRESULT OnThreadClose(WPARAM, LPARAM);
LRESULT OnAddTraceLine(WPARAM wParam, LPARAM);
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_SERVDLG_H__B7C54BC9_A555_11D0_8996_00AA00B92B2E__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -