I have a rich edit view with menu options for center, left, and right justification of paragraphs. I need to add full justification (both left and right) but I can't find any support for that in MFC. Does anyone know how?
thanks.
If you dig around in the platform documentation for Rich Edit controls, you will realize that there are three different versions of Rich Edit controls. The MFC implementation of CRichEditCtrl wraps the rich edit 1.0 control.
The Justify alignment is only implemented in Rich Edit 3.0. RE3 is only available in Windows 2000, ME and XP however, Sorry.
The different versions many times have very different implementations. Even the name of the window class has changed. When you make a rich edit in the dialog editor, it becomes a Rich Edit 1.0. You will have to insert a Custom Control with the correct Window Class of the version of Rich Edit you want to use.
Look at Rich Edit 3.0 and the PARAFORMAT2 structure.
I could not find the correct window class for rich edit 3, and I am afraid it may require too many changes at this stage in my program. but thanks for letting me know what's happening.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.