如何在MFC中的CRichEditCtrl中获取当前位置? [英] How to get current position in the CRichEditCtrl in MFC?
本文介绍了如何在MFC中的CRichEditCtrl中获取当前位置?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在CEdit类中,我们可以使用下面的函数获取当前光标位置。
DWORD GetSel()const;
在CRichEditCtrl类中如何获取当前光标位置?
谢谢
解决方案
尝试其中一个
GetSel :
https://msdn.microsoft.com/en-us/library/76a787xf.aspx#Anchor_25 一> 跨度> 跨度> 跨度>
Hi,
In CEdit class we can get current cursor position using below function.
DWORD GetSel() const;
In CRichEditCtrl class how to get the current cursor position?
Thanks
解决方案
Try one of GetSel: https://msdn.microsoft.com/en-us/library/76a787xf.aspx#Anchor_25
这篇关于如何在MFC中的CRichEditCtrl中获取当前位置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文