Any chance that the RichEdit mess gets fixed?

J J 1 Reputation point
2023-01-26T22:49:22.48+00:00

I wrote a program ([here]) that loads the same identical rtf file into three controls created with
a) C:\Windows\System32\msftedit.dll
b) same but dll stolen from Windows 7
c) C:\Program Files (x86)\Common Files\Microsoft shared\Office12\RICHED20.DLL

  • for all three controls, it sets the EN_LINK style for the range 555...666 and 777...888
  • the link style is set automatically for the examples links
  • note the extra spacing introduced only by the Win10 msftedit
  • note the different "automatic" ranges selected only by the Win7 msftedit; they are one off per link
  • note the selected text ranges: tText... for Win10+Office12, extText for Win7

The msftedit-based control on Win XP (not shown here) behaves exactly like the Win7 version. It is therefore likely that Microsoft, in the process of fixing the EM_EXSETSEL bug for Win10, introduced a new bug.

RichEd3

What are Microsoft's intentions? AFAIK the RichEdit control is the only Windows control that allows formatted text, it is a pity that there are so many bugs in it.

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
10,726 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Limitless Technology 43,971 Reputation points
    2023-02-01T10:58:17.82+00:00

    Hello there,

    You can have a look into this hotfix released. An application that uses the RichTextBox control cannot display an .rtf file correctly in Windows 7 or in Windows Server 2008 R2 https://support.microsoft.com/en-us/topic/an-application-that-uses-the-richtextbox-control-cannot-display-an-rtf-file-correctly-in-windows-7-or-in-windows-server-2008-r2-a054ea79-0e07-f317-0018-239d089932eb

    You can collect the Event logs and share them with the Microsoft team to get this sorted

    or get an appropriate workaround for this.

    You can raise feedback to the Microsoft team. The Feedback Hub app lets you tell

    . Microsoft about any problems you run into

    https://support.microsoft.com/en-us/windows/send-feedback-to-microsoft-with-the-feedb

    ack-hub-app-f59187f8-8739-22d6-ba93-f66612949332Hope this resolves your Query !!

    --If the reply is helpful, please Upvote and Accept it as an answer--

    0 comments No comments

  2. Limitless Technology 43,971 Reputation points
    2023-02-01T10:58:26.38+00:00

    Double post