www.pudn.com > chat-dialog.rar > Client1_2Dlg.h


// Client1_2Dlg.h : header file 
// 
 
#if !defined(AFX_CLIENT1_2DLG_H__8D0019DC_C1D5_4250_8C69_E91AEBDB50D6__INCLUDED_) 
#define AFX_CLIENT1_2DLG_H__8D0019DC_C1D5_4250_8C69_E91AEBDB50D6__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
#include "SetConnect.h" 
#include "ClientSocket.h" 
#include "SocketMsg.h" 
///////////////////////////////////////////////////////////////////////////// 
// CClient1_2Dlg dialog 
//¶¨Òå°ü 
 
class CClient1_2Dlg : public CDialog 
{ 
// Construction 
public: 
	CClient1_2Dlg(CWnd* pParent = NULL);	// standard constructor 
 
// Dialog Data 
	//{{AFX_DATA(CClient1_2Dlg) 
	enum { IDD = IDD_CLIENT1_2_DIALOG }; 
		// NOTE: the ClassWizard will add data members here 
	//}}AFX_DATA 
 
	// ClassWizard generated virtual function overrides 
	//{{AFX_VIRTUAL(CClient1_2Dlg) 
	public: 
	virtual BOOL DestroyWindow(); 
	protected: 
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support 
	virtual LRESULT DefWindowProc(UINT message, WPARAM wParam, LPARAM lParam); 
	//}}AFX_VIRTUAL 
 
// Implementation 
protected: 
	HICON m_hIcon; 
//	CMenu m_menuCon; 
 
	// Generated message map functions 
	//{{AFX_MSG(CClient1_2Dlg) 
	virtual BOOL OnInitDialog(); 
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam); 
	afx_msg void OnPaint(); 
	afx_msg HCURSOR OnQueryDragIcon(); 
	afx_msg void OnSendmsg(); 
	afx_msg void OnCon(); 
	afx_msg void OnQuit(); 
	afx_msg void OnSavemsg(); 
	afx_msg void OnAbout(); 
	afx_msg void OnAllarm(); 
	//}}AFX_MSG 
	DECLARE_MESSAGE_MAP() 
private: 
	bool m_bConnect; 
	CClientSocket m_sockClient; 
	CString m_strIP; 
	UINT m_nPort; 
	CString m_strID; 
public: 
	void DisDlgRev(char*,int); 
	CString Formatstr(CSocketMsg *pMsg); 
	CString GetCurTime(); 
	void SetNewClient(char*,int); 
	void CloseClient(char*,int); 
	void OnListChange(CString); 
	void Allarm(); 
private: 
	CString m_strDisplay; 
	CStringList* m_pStringList; 
	CImageList m_imageList; 
}; 
 
//{{AFX_INSERT_LOCATION}} 
// Microsoft Visual C++ will insert additional declarations immediately before the previous line. 
 
#endif // !defined(AFX_CLIENT1_2DLG_H__8D0019DC_C1D5_4250_8C69_E91AEBDB50D6__INCLUDED_)