|
-
Jan 26th, 2023, 05:22 PM
#1
Thread Starter
Addicted Member
RichEdit: Windows 10 version of msftedit.dll is broken
For those of you who use the RichText box, here is a post describing a few oddities.
I'm afraid it's not VB6 but Assembly code, but IMHO it's important to know that there are significant differences between recent versions of System32\msftedit.dll:
The program 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 (the control also became 5 times slower, but that's another story).
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|