/*=========================================================================== * * RICHTEXT.H - 30 March 1999, Dave Humphrey * *=========================================================================*/ #ifndef __RICHTEXT_H #define __RICHTEXT_H #if _MSC_VER > 1000 #pragma once #endif /*=========================================================================== * * Class CRichText Definition * * A custom class based off the MFC default CRichEditCtrl RTF text box * control. Adds additional features such as a custom popup menu. * *=========================================================================*/ class CRichText : public CRichEditCtrl { /* Allow dynamic creation of class */ DECLARE_DYNCREATE(CRichText) public: CMenu m_Menu; /* The entire menu containing the popup code */ public: /* Initializes the popup menu class members */ void InitPopupMenu (const UINT MenuID) { m_Menu.LoadMenu(MenuID); } public: /* ClassWizard generated virtual function overrides */ //{{AFX_VIRTUAL(CRichText) //}}AFX_VIRTUAL protected: //{{AFX_MSG(CRichText) afx_msg void OnRButtonDown(UINT nFlags, CPoint point); //}}AFX_MSG DECLARE_MESSAGE_MAP() }; /*=========================================================================== * End of Class CRichText Definition *=========================================================================*/ //{{AFX_INSERT_LOCATION}} //}}AFX #endif /*=========================================================================== * End of File RICHTEXT.H *=========================================================================*/