Quote Originally Posted by Mith View Post
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.