Click here to Skip to main content
15,885,985 members
Articles / Desktop Programming / MFC

Barry's Chat System

Rate me:
Please Sign up or sign in to vote.
4.91/5 (8 votes)
24 Nov 20025 min read 140.3K   7.5K   57  
Barry's Chat System
#if !defined(AFX_CHATVIEW_H__E8E2AD34_509F_11D6_9693_AF0E159D6826__INCLUDED_)
#define AFX_CHATVIEW_H__E8E2AD34_509F_11D6_9693_AF0E159D6826__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// ChatView.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CChatView form view

#ifndef __AFXEXT_H__
#include <afxext.h>
#endif

//#include "ChatClientDoc.h"
#include "SendEditBox.h"

#include "ChatClientDoc.h"

class CChatView : public CFormView
{
protected:
	CChatView();           // protected constructor used by dynamic creation
	DECLARE_DYNCREATE(CChatView)

// Form Data
public:
	//{{AFX_DATA(CChatView)

	CChatClientDoc* GetDocument();

	enum { IDD = IDD_CHATVIEW };
	CEdit	m_SendEditBox;
	CRichEditCtrl	m_ChatEditBox;
	BOOL bViewCreated;
	//}}AFX_DATA

// Attributes
public:

// Operations
public:
	void Message(LPCTSTR lpszMessage);

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CChatView)
	public:
	virtual void OnInitialUpdate();
	virtual void Serialize(CArchive& ar);
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	virtual ~CChatView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

	// Generated message map functions
	//{{AFX_MSG(CChatView)
	afx_msg void OnSize(UINT nType, int cx, int cy);
	afx_msg void OnDestroy();
	afx_msg void OnKillfocusSendEditbox();

	afx_msg void OnEnKillFocus(UINT nID);

	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

/////////////////////////////////////////////////////////////////////////////

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

#endif // !defined(AFX_CHATVIEW_H__E8E2AD34_509F_11D6_9693_AF0E159D6826__INCLUDED_)

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
India India
Nothing to boast about

Comments and Discussions