www.pudn.com > 20070204001822308.gz > TestClientDlg.h
// TestClientDlg.h : header file
//
//{{AFX_INCLUDES()
#include "mswinsockcontrol.h"
//}}AFX_INCLUDES
#if !defined(AFX_TESTCLIENTDLG_H__6488D969_B505_45DF_A98A_E2672F9E4200__INCLUDED_)
#define AFX_TESTCLIENTDLG_H__6488D969_B505_45DF_A98A_E2672F9E4200__INCLUDED_
#include "mswinsockcontrol.h"
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
/////////////////////////////////////////////////////////////////////////////
// CTestClientDlg dialog
class CTestClientDlg : public CDialog
{
// Construction
public:
CTestClientDlg(CWnd* pParent = NULL); // standard constructor
CString m_host;
CString m_port;
VARIANT vtHost;
VARIANT vtPort;
VARIANT vtData;
VARIANT vtMaxlen;
VARIANT vtType;
VARIANT vtCommand;
CString m_Command;
// Dialog Data
//{{AFX_DATA(CTestClientDlg)
enum { IDD = IDD_TESTCLIENT_DIALOG };
CButton m_connect;
CString m_recvdata;
CString m_senddata;
CMSWinsockControl m_SockClient;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CTestClientDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CTestClientDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnBtnconnect();
afx_msg void OnCloseWinsock1();
afx_msg void OnDataArrivalWinsock1(long bytesTotal);
afx_msg void OnBtnsend();
DECLARE_EVENTSINK_MAP()
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_TESTCLIENTDLG_H__6488D969_B505_45DF_A98A_E2672F9E4200__INCLUDED_)