www.pudn.com > TestIconPicker.zip > RichEditCtrlEx.h, change:2004-03-31,size:2193b


#if !defined(AFX_RICHEDITCTRLEX_H__BC3CDEB6_F71B_4258_BBD2_B06E477678C3__INCLUDED_) 
#define AFX_RICHEDITCTRLEX_H__BC3CDEB6_F71B_4258_BBD2_B06E477678C3__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
// RichEditCtrlEx.h : header file 
// 
 
///////////////////////////////////////////////////////////////////////////// 
// CRichEditCtrlEx window 
#include <afxodlgs.h> 
#include <afxpriv.h> 
#include "oleimpl2.h" 
#include "Richole.h" 
class CRichEditCtrlEx : public CRichEditCtrl 
{ 
// Construction 
public: 
	CRichEditCtrlEx(); 
 
// Attributes 
public: 
 
// Operations 
public: 
 
// Overrides 
	// ClassWizard generated virtual function overrides 
	//{{AFX_VIRTUAL(CRichEditCtrlEx) 
	//}}AFX_VIRTUAL 
 
// Implementation 
public: 
	static DWORD CALLBACK CStringFormatToRTF(DWORD dwCookie, LPBYTE pbBuff, LONG cb, LONG *pcb); 
	static DWORD CALLBACK RTFFormatToCString(DWORD dwCookie, LPBYTE pbBuff, LONG cb, LONG *pcb); 
	void SetRTF(CString strRTF); 
	CString GetRTF(); 
	void InsertBitmap(HBITMAP hBitmap); 
	void InsertBitmap(CString strFileName); 
	virtual ~CRichEditCtrlEx(); 
 
	// Generated message map functions 
protected: 
	LPSTORAGE m_lpStorage;  // provides storage for m_lpObject 
	LPLOCKBYTES m_lpLockBytes;  // part of implementation of m_lpStorage 
	LPOLEOBJECT m_lpObject; // in case you want direct access to the OLE object 
	LPVIEWOBJECT2 m_lpViewObject;// IViewObject for IOleObject above 
	//{{AFX_MSG(CRichEditCtrlEx) 
	afx_msg void OnRButtonUp(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 void OnSelectfont(); 
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct); 
	//}}AFX_MSG 
 
	DECLARE_MESSAGE_MAP() 
}; 
 
///////////////////////////////////////////////////////////////////////////// 
 
//{{AFX_INSERT_LOCATION}} 
// Microsoft Visual C++ will insert additional declarations immediately before the previous line. 
 
#endif // !defined(AFX_RICHEDITCTRLEX_H__BC3CDEB6_F71B_4258_BBD2_B06E477678C3__INCLUDED_)