Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

"full" justification in rich edit

Status
Not open for further replies.

serpem

Programmer
Feb 20, 2003
22
0
0
US
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 REALLY hope that helps.
Will

Look at Rich Edit 3.0 and
 
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top