📄 chatedit.h
字号:
#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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -