CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Guest

    CRichEditCtrl on MM_LOENGLISH

    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



  2. #2
    Join Date
    Apr 1999
    Location
    Philippines
    Posts
    46

    Re: CRichEditCtrl on MM_LOENGLISH

    Hi!
    If you're using Win95/98, device context is limited to
    –32,768 to 32,767 logical units.



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured