RichEdit控件中的光标位置 [英] Cursor position in RichEdit Control

查看:79
本文介绍了RichEdit控件中的光标位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好!


需要有关Rich Edit控件的帮助..

我正在处理VT100终端转义序列..

根据转义序列,光标需要跳转到该位置.

例如:?[23; 10H
?[-Esc代码
23-列号
10-是行号

因此,如果我直接收到?[23; 10H,则需要将此序列直接放置在Rich Edit控件中的23 col和10行位置..

请让我知道哪个API函数可以工作..发送一些示例代码将不胜感激.

谢谢
Arjun

Hi All!


Need help on Rich Edit control..

I''m working on VT100 terminal escape sequences..

According to escape sequences cursor need to jump to that location..

Ex.. 
[ - Esc code
23 - is the column no
10 - is the row no

So if i receive  this sequence directly i need to place the cursor at 23 col and 10 row position in Rich Edit control..

Pls let me know which API function can work.. send some sample code will be most appreciated.

Thanks
Arjun

推荐答案

看看 EM_EXGETSEL [ ^ ]

我想您在尝试用Richedit IMO编写仿真器时一无所获
have a look at EM_EXSETSEL[^] and EM_EXGETSEL[^]

I think you''re on a hiding to nothing trying to write an emulator in richedit IMO


1.调整丰富的编辑大小和另一个应用程序,以便您都可以在屏幕上看到它们.
2.单击另一个应用程序.
3.然后单击丰富的编辑,光标将在丰富的编辑中的旧位置仍然闪烁,而光标应放置在用户单击丰富的编辑的位置.

谁能帮我解决这个问题.

请让我知道是否需要更多信息.
1. resize rich edit and one more application so that both u can see on screen.
2. click in another application.
3. then click in rich edit,cursor will blink in old position in rich edit still while it should be placed where user clicked in rich edit.

can any one help me to resolve it.

please let me know if more info required.


这篇关于RichEdit控件中的光标位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆