Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:

Лабы / !lab3 / Client / ClientDlg

.h
Скачиваний:
16
Добавлен:
17.04.2013
Размер:
1.77 Кб
Скачать
// ClientDlg.h : header file
//

#include "afxwin.h"
#include "afxcmn.h"
#if !defined(AFX_CLIENTDLG_H__375DBAB8_A97F_45B7_A69B_1B851AB62C22__INCLUDED_)
#define AFX_CLIENTDLG_H__375DBAB8_A97F_45B7_A69B_1B851AB62C22__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "mysocket.h"
/////////////////////////////////////////////////////////////////////////////
// CClientDlg dialog

class CClientDlg : public CDialog
{
// Construction
public:
	CClientDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	//{{AFX_DATA(CClientDlg)
	enum { IDD = IDD_CLIENT_DIALOG };
		// NOTE: the ClassWizard will add data members here
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CClientDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CClientDlg)
//	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
public:
	CString m_sServAddr;
	DWORD m_dwServPort;
	CMySocket m_Sock;
	afx_msg void OnBnClickedBtnconnect();
	afx_msg void OnBnClickedBtnsend();
	CButton m_btConnect;
	CButton m_btnDisconnect;
	CButton m_btnSend;
	CEdit m_edAddr;
	CEdit m_edPort;
	afx_msg void OnBnClickedBtndisconnect();
	virtual BOOL OnInitDialog();

	int CloseConn(void);
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_CLIENTDLG_H__375DBAB8_A97F_45B7_A69B_1B851AB62C22__INCLUDED_)
Соседние файлы в папке Client