在组合框中添加文本光标 [英] bliking text cursor in combo box

查看:51
本文介绍了在组合框中添加文本光标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何将闪烁的文本光标从字符串的开头移动到字符串的结尾.

示例:
我有一个带有"s | ssss"文本的组合框控件.
光标现在位于第一个s之后.
我想将其移动到字符串的末尾以成为"ssss |"

how do I move the blinking text cursor from the beginning of the string to the end of a string.

Example:
I have a combo box control with the text of "s|ssss"
the cursor is now after the first s.
I want to move it to the end of the string to become"ssss|"

推荐答案

调用CEdit::SetSel并将开始和结束位置设置为字符串的长度字符串.
Call C:SetSel and set the start and end positions to the length of the string.


这篇关于在组合框中添加文本光标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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