www.pudn.com > tcpS.rar > tcpSDlg.h
// tcpSDlg.h : header file
//
#include "MySock.h"
#define WM_MYMSG WM_USER + 100
#if !defined(AFX_TCPSDLG_H__D598BA4B_78C3_467B_80D1_3B5FA01F59CE__INCLUDED_)
#define AFX_TCPSDLG_H__D598BA4B_78C3_467B_80D1_3B5FA01F59CE__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
/////////////////////////////////////////////////////////////////////////////
// CTcpSDlg dialog
DWORD WINAPI SelectThread(void *pVoid);
class CTcpSDlg : public CDialog
{
// Construction
public:
bool b_run;
MySock m_MySock;
CTcpSDlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CTcpSDlg)
enum { IDD = IDD_TCPS_DIALOG };
CButton m_Stop;
CButton m_Start;
CString m_strMsg;
CString m_strSend;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CTcpSDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CTcpSDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnButtonStart();
afx_msg void OnButtonStop();
afx_msg void OnButtonSend();
afx_msg void OnMyMSG();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_TCPSDLG_H__D598BA4B_78C3_467B_80D1_3B5FA01F59CE__INCLUDED_)