CComboBox中编辑框输入不了更多字符

lostboy7931 2013-12-08 12:10:01
vs2008
我发现,在CComboBox的编辑框中输入字符,一旦输入满了(字符串宽度==编辑框宽度),就无法再输入了
怎样能输入更多字符呢?
...全文
127 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
lostboy7931 2013-12-09
  • 打赏
  • 举报
回复
可以了,非常感谢!
zhuyf87 2013-12-08
  • 打赏
  • 举报
回复
可以设置Behavior中的Auto属性为True。Auto属性的作用是:Automatically scrolls text to the left when the user types a character at the end of the line. 如果是动态创建的CComboBox,Create时加上CBS_AUTOHSCROLL style,应该也可以吧。 CBS_AUTOHSCROLL Automatically scrolls the text in the edit control to the right when the user types a character at the end of the line. If this style is not set, only text that fits within the rectangular boundary is allowed.
sd__q 2013-12-08
  • 打赏
  • 举报
回复
行为的Auto属性设置为True

15,979

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC 界面
社区管理员
  • 界面
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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