win10 richedit文本方向格式不起作用 [英] win10 richedit text direction formatting doesn't work
问题描述
亲爱的,
 我发现win10 richedit UILess控件的文本方向格式不起作用,但是,它适用于win7。 从下面链接
I found text direction formatting for win10 richedit UILess control doesn't work, however, it works on win7. From below link
https://social.msdn.microsoft.com/Forums/vstudio/en-US/8a60f78c-c2fb-4151-930a-0f30c5e582f8/directional- ?格式化论坛= vclanguage 
https://social.msdn.microsoft.com/Forums/vstudio/en-US/8a60f78c-c2fb-4151-930a-0f30c5e582f8/directional-formatting?forum=vclanguage
 我们可以知道unicode 0x202D是从左到右,而0x202E是从右到左,但是,根据我的测试,我发现结果正好相反。以下是要测试的详细步骤:
we can know that unicode 0x202D is left-to-right, and 0x202E is right-to-left, however, base my testing, I found that the result is just opposite. below is the detail steps to test:
步骤:设置unicode字符串'0x202D'+" 138 199" +'0x202C' 到richedit,就像下面的代码一样
steps: set unicode string '0x202D' +"138 199" + '0x202C' to richedit, just like below code
TCHAR a = 0x202d;
CString str = a;
str += _T("138");
str += _T(" 1919");
a = 0x202c;
str += a;
m_rich_test->SetText(str);
期待结果:richedit show:138 199
Expect result: richedit show : 138 199
实际结果:richedit显示:199 138
Actually result: richedit show: 199 138
有人可以检查这个问题吗?
Could someone can have a check for this issue?
谢谢。
-Adli
推荐答案
任何人都可以提供帮助吗?
anyone can help on this?
这篇关于win10 richedit文本方向格式不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!