#if !defined(AFX_CHATDLG_H__8E1066E4_AA1F_4722_96AD_BB2318308B74__INCLUDED_)
#define AFX_CHATDLG_H__8E1066E4_AA1F_4722_96AD_BB2318308B74__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// ChatDlg.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CChatDlg dialog
#include "afxtempl.h"
#include "AutoRichEditCtrl.h"
#include "Richole.h"
#include "ChPicFrm.h"

class CClientDlg;

class CChatDlg : public CDialog
{
// Construction
public:
	CChatDlg(CWnd* pParent = NULL);   // standard constructor
	
// Dialog Data
	//{{AFX_DATA(CChatDlg)
	enum { IDD = IDD_CHATROOM };
	CRichEditCtrl	m_ChatEdit;
	CListBox	m_UserList;
	CString	m_Send;
	//}}AFX_DATA

	//CList<CString, CString&> m_Param;
	void SetParent(CClientDlg* pParent);
	CClientDlg* m_pParent;
	CString m_Roomname;
	void ShowMsgFrom(CString strMan, CString strMsg);
	void ShowMsgTo(CString strMsg);

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CChatDlg)
	public:
	virtual BOOL PreTranslateMessage(MSG* pMsg);
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(CChatDlg)
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnButtonSend();
	afx_msg void OnButtonLeave();
	afx_msg void OnDblclkListUser();
	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_CHATDLG_H__8E1066E4_AA1F_4722_96AD_BB2318308B74__INCLUDED_)
