Click to See Complete Forum and Search --> : CRichEditCtrl on MM_LOENGLISH


May 17th, 1999, 06:17 PM
Hi,

I am trying to use the function FormatRange of CRichEditCtrl to display its content on the screen.
When the mapping mode is MM_TEXT, I have no problem and use kind of the following code:
edit.SetWindowText("Type your text here");
FORMATRANGE fr;
fr.hdc = pDC->m_hDC;
fr.hdcTarget = pDC->m_hDC;
fr.rc = CRect(0, 0, 1440, 1440);
fr.rcPage = CRect(0, 0, 0, 0);
fr.chrg.cpMin = 0;
fr.chrg.cpMax = -1;
edit.FormatRange(&fr);
However, when I set the mapping mode to MM_LOENGLISH just before, I can't seem to make FormatRange work.

Thanks a lot
Marc

Tonio
May 18th, 1999, 02:51 AM
Hi!
If you're using Win95/98, device context is limited to
–32,768 to 32,767 logical units.