chatview.h
来自「一个简易的聊天室程序」· C头文件 代码 · 共 83 行
H
83 行
#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_)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?