如何增加MFC中ComboBox项的长度
How to increase Length of a ComboBox item in MFC
我已经使用 MFC 创建了一个对话框应用程序。我有一个 CComboBox
,我可以输入一个 URL 长度为 60 个字符。但是当长度增加时,我无法进入。
CBS_AUTOHSCROLL
允许在组合框的编辑控件(简单或下拉样式)中添加更多字符。
您可以在创建组合框时设置此标志。但是,如果您在组合框创建后修改此标志,则没有任何效果。
在对话框资源编辑器中,此标志在组合框属性中显示为 "Auto"。
CBS_AUTOHSCROLL
Automatically scrolls the text in an 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.
我已经使用 MFC 创建了一个对话框应用程序。我有一个 CComboBox
,我可以输入一个 URL 长度为 60 个字符。但是当长度增加时,我无法进入。
CBS_AUTOHSCROLL
允许在组合框的编辑控件(简单或下拉样式)中添加更多字符。
您可以在创建组合框时设置此标志。但是,如果您在组合框创建后修改此标志,则没有任何效果。
在对话框资源编辑器中,此标志在组合框属性中显示为 "Auto"。
CBS_AUTOHSCROLL
Automatically scrolls the text in an 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.