📄 chatviewre.h
字号:
#if !defined(AFX_CHATVIEWRE_H__9DB9E6C7_4991_11D6_9693_F74F7708F621__INCLUDED_)
#define AFX_CHATVIEWRE_H__9DB9E6C7_4991_11D6_9693_F74F7708F621__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// ChatViewRE.h : header file
//
#include <afxrich.h>
/////////////////////////////////////////////////////////////////////////////
// CChatViewRE view
class CChatViewRE : public CRichEditView
{
protected:
CChatViewRE(); // protected constructor used by dynamic creation
DECLARE_DYNCREATE(CChatViewRE)
// Attributes
public:
BOOL bIsBulleted;
BOOL bBoldSelected;
BOOL bUnderlineSelected;
BOOL bStrikeOutSelected;
BOOL bItalicSelected;
BOOL bLeftAlign;
BOOL bRightAlign;
BOOL bCenterAlign;
// Operations
public:
void SetBullet(UINT iNumbering , BOOL IsBulleted);
void SetFormat(CHARFORMAT2 cf);
void AlignText(int iAlign);
// void Message(LPCTSTR lpszMessage, LOGFONT lf, COLORREF lftxtClr);
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CChatViewRE)
public:
virtual void OnInitialUpdate();
protected:
virtual void OnDraw(CDC* pDC); // overridden to draw this view
//}}AFX_VIRTUAL
// Implementation
protected:
virtual ~CChatViewRE();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
// Generated message map functions
protected:
//{{AFX_MSG(CChatViewRE)
// NOTE - the ClassWizard will add and remove member functions here.
// afx_msg void OnAlignCenter();
// afx_msg void OnAlignLeft();
// afx_msg void OnAlignRight();
afx_msg void OnInsertDate();
afx_msg void OnInsertTime();
afx_msg void OnSetFont();
afx_msg void OnSetColor();
afx_msg void OnBold();
afx_msg void OnBulleted();
afx_msg void OnItalic();
afx_msg void OnStrikeout();
afx_msg void OnUnderlined();
afx_msg void OnMyaboutbox();
afx_msg void OnIndentation();
afx_msg void OnAlignment(UINT nCommand);
afx_msg void OnUpdateBulleted(CCmdUI* pCmdUI);
afx_msg void OnUpdateBold(CCmdUI* pCmdUI);
afx_msg void OnUpdateItalic(CCmdUI* pCmdUI);
afx_msg void OnUpdateStrikeout(CCmdUI* pCmdUI);
afx_msg void OnUpdateUnderlined(CCmdUI* pCmdUI);
// afx_msg void OnUpdateAlignCenter(CCmdUI* pCmdUI);
// afx_msg void OnUpdateAlignLeft(CCmdUI* pCmdUI);
// afx_msg void OnUpdateAlignRight(CCmdUI* pCmdUI);
afx_msg void OnUpdateAlignment(CCmdUI* pCmdUI);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_CHATVIEWRE_H__9DB9E6C7_4991_11D6_9693_F74F7708F621__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -