>>>>> 用过CRichEditView或是CRichEditCtrl的朋友都请进来,问题很简单,分数可不少!!

silver 2001-07-19 09:59:05
如何能够在CRichEditView或是CRichEditCtrl中正确显示中文?

我现在的情况是CRichEditView基本能够正确显示汉字,但是Backspace或是Delete会
删除半个汉字从而后面的汉字均变成乱码。

哪位大虾能够解决这个问题奉上300分!!
...全文
151 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
111222 2001-07-19
  • 打赏
  • 举报
回复


http://www.csdn.net/filebbs/read_topic.asp?id=310

我在上面提供了一个用richedit20a的例子,良好的解决了上述问题。

:)
shenyc 2001-07-19
  • 打赏
  • 举报
回复
0.control MM_CHAR
1.Get the position of cursor
2.Get the code of char which here
3.if code>=0xa0 then it is not english char
4.delete 2 char
shenyc 2001-07-19
  • 打赏
  • 举报
回复
0.control MM_CHAR
1.Get the position of cursor
2.Get the code of char which here
3.if code>=0x10 then it is not english char
4.delete 2 char
dgcat_6 2001-07-19
  • 打赏
  • 举报
回复
原来Backspace或是Delete只能处理一个字节的问题出现的现象!我试试!
yphy 2001-07-19
  • 打赏
  • 举报
回复
好像不装就VB可以。

yphy

741

社区成员

发帖
与我相关
我的任务
社区描述
VB 版八卦、闲侃,联络感情地盘,禁广告帖、作业帖
社区管理员
  • 非技术类社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧