CorpSms/RichEditEx.h

69 lines
2.0 KiB
C
Raw Normal View History

2025-02-27 16:58:16 +08:00
#if !defined(AFX_RichEditEx_H__23EF1C6E_820D_4C94_A980_4EC63A4650DA__INCLUDED_)
#define AFX_RichEditEx_H__23EF1C6E_820D_4C94_A980_4EC63A4650DA__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// RichEditEx.h : header file
//
///////////<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ϢID/////////////////////////
#define ID_RICH_UNDO 101
#define ID_RICH_CUT 102
#define ID_RICH_COPY 103
#define ID_RICH_PASTE 104
#define ID_RICH_CLEAR 105
#define ID_RICH_SELECTALL 106
#define ID_RICH_SETFONT 107
/////////////////////////////////////////////////////////////////////////////
// CRichEditEx window
class CRichEditEx : public CRichEditCtrl
{
// Construction
public:
CRichEditEx();
// Attributes
public:
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CRichEditCtrl)
//}}AFX_VIRTUAL
// Implementation
public:
void SetColor2(COLORREF color);
void StartIndent2(long lStartIndent);
void InsertGraph( CString strPicPath );
void InsertGraph(HBITMAP hBitmap );
void SetWordWrap(const bool bOn=true, const int iLineWidth=0);
void SetColor(COLORREF color);
void SetFont();
void SetJustify(void);
virtual ~CRichEditEx();
// Generated message map functions
protected:
//{{AFX_MSG(CRichEditEx)
afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
afx_msg void OnCopy() { Copy(); }
afx_msg void OnCut() { Cut(); }
afx_msg void OnPaste() { Paste(); }
afx_msg void OnSelectall() { SetSel(0, -1); }
afx_msg void OnUndo() { Undo(); }
afx_msg void OnClear() { Clear(); }
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_RichEditEx_H__23EF1C6E_820D_4C94_A980_4EC63A4650DA__INCLUDED_)