chatedit.h

来自「网络聊天工具原代码 VC源码(网络编程」· C头文件 代码 · 共 67 行

H
67
字号
#if !defined(AFX_CHATEDIT_H__E01BD02F_4AA7_11D4_93A3_0000E86DCAD8__INCLUDED_)
#define AFX_CHATEDIT_H__E01BD02F_4AA7_11D4_93A3_0000E86DCAD8__INCLUDED_

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

/////////////////////////////////////////////////////////////////////////////
// CChatEdit window

class CChatEdit : public CEdit
{
// Construction
public:
	CChatEdit();

// Attributes
public:

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CChatEdit)
	public:
	virtual BOOL PreTranslateMessage(MSG* pMsg);
	//}}AFX_VIRTUAL

// Implementation
public:
	int GetBytes();
	LPBYTE GetBuffer();
	void SetMyName(CString szMe);
	virtual ~CChatEdit();
	void SetUser( CString szMe, CString szYou );
	void PostChat( LPSTR lpBuffer, BOOL bSide );
	// Generated message map functions
protected:
	//{{AFX_MSG(CChatEdit)
		// NOTE - the ClassWizard will add and remove member functions here.
	afx_msg void OnPaste(WPARAM wParam, LPARAM lParam);
	afx_msg void OnCut(WPARAM wParam, LPARAM lParam);
	afx_msg void OnUndo(WPARAM wParam, LPARAM lParam);
	afx_msg void OnClear(WPARAM wParam, LPARAM lParam);
	//}}AFX_MSG

	DECLARE_MESSAGE_MAP()

private:
	DWORD m_dwBytes;
	int nCurLines;
	CString m_szMe;
	CString m_szYou;
	BOOL	m_bSetUser;
	LPBYTE	m_lpBuffer;
};

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

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

#endif // !defined(AFX_CHATEDIT_H__E01BD02F_4AA7_11D4_93A3_0000E86DCAD8__INCLUDED_)

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?