|
-
Dec 20th, 2021, 06:47 PM
#11
Addicted Member
Re: RichtextBox text color - different behavior since Windows 8/10/11
 Originally Posted by Mith
I still working on the basic functions.
I have completely rewritten your code to optimize everything for Unicode.
For example, i load the file content via CreateFileWide/ReadFile to support file/dirs with unicode characters in the name.
I also added a algo to determine different file encodings:
UTF8, UTF8NoBOM, UTF16LE, UTF16LEnoBOM, UTF16BE, UTF16BEnoBOM, ANSI
I also replaced the ANSI function "TextWidth" at event "VListBox1_GetVirtualItem" with API "GetTextExtentPoint32W" to get the correct text width.
With the ANSI function the scrollbar width was mostly wrong. ... .. .
...
..
.
Dear Mith,
Thanks a lot. Interested in your rewritten code, if you can share it, please.
Esp. interested in your algo which can correctly determine "UTF8 with no BOM" too.
Kind Regards.
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
|