www.pudn.com > MyQQClient.zip > ChatDialog.h


#if !defined(AFX_CHATDIALOG_H__CBF8501B_D132_4535_8729_EB696C0615F2__INCLUDED_) 
#define AFX_CHATDIALOG_H__CBF8501B_D132_4535_8729_EB696C0615F2__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
// ChatDialog.h : header file 
// 
#include "MainSocket.h" 
///////////////////////////////////////////////////////////////////////////// 
// CChatDialog dialog 
 
class CChatDialog : public CDialog 
{ 
// Construction 
public: 
	CMainSocket *m_pClientSocket; 
	void DisplayMessage(CString UserName,CString strChatMessage); 
//	int m_SocketID; 
	CString m_ClientName; 
	CString m_UserName; 
	CChatDialog(CWnd* pParent = NULL);   // standard constructor 
 
// Dialog Data 
	//{{AFX_DATA(CChatDialog) 
	enum { IDD = IDD_DIALOG_CHAT }; 
	CRichEditCtrl	m_MessageCtrl; 
	CRichEditCtrl	m_ReceiveCtrl; 
	//}}AFX_DATA 
 
 
// Overrides 
	// ClassWizard generated virtual function overrides 
	//{{AFX_VIRTUAL(CChatDialog) 
	public: 
	virtual BOOL DestroyWindow(); 
	protected: 
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support 
	//}}AFX_VIRTUAL 
 
// Implementation 
protected: 
 
	// Generated message map functions 
	//{{AFX_MSG(CChatDialog) 
	virtual void OnOK(); 
	afx_msg void OnClose(); 
	virtual BOOL OnInitDialog(); 
	//}}AFX_MSG 
	DECLARE_MESSAGE_MAP() 
}; 
 
//{{AFX_INSERT_LOCATION}} 
// Microsoft Visual C++ will insert additional declarations immediately before the previous line. 
 
#endif // !defined(AFX_CHATDIALOG_H__CBF8501B_D132_4535_8729_EB696C0615F2__INCLUDED_)