读书人

combo box输入数据时数据长于控件长

发布时间: 2012-05-05 17:21:10 作者: rapoo

combo box输入数据时,数据长于控件长度,就不能继续输入了,怎么办
谢谢

[解决办法]
“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.

[解决办法]
顶楼上,你要是动态创建的话额外加上这个风格就行
如果不是动态创建的话用一下SetExtendedStyle()函数来设置,不过这个我没用过,不过你试试看

读书人网 >VC/MFC

热点推荐