Click here to Skip to main content
15,913,167 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
Can anybody please tell me how to replace the CRichEditCtrl of CRichEDitView with our own CRichEditCtrl derived class (which may have some added functionality)in MFC.
Thanks
Dev
Posted

1 solution

You can't replace the control, you need to make your own view class for that.

The faster and easiest option I see is to create a FormView instead of CRichEditView. Use a form that only contains your custom control. Then in your FormView derived class, handle resizing events to make your control take all space within the form.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900