Detecting / Counting Duplicate Items in - 项目摘要 |
摘要
| 管理 |
论坛 文档
| 软件包 |
|
|
|
项目描述: |
This code sample shows how to detect and count the duplicate entries in a ListBox, it could also be adapted to be used with a ComboBox control.
The code makes use of the SendMessage API along with the ListBox LB_FINDSTRINGEXACT windows message to detect duplicate items. If you were changing the code to work with a combo, you would use the CB_FINDSTRINGEXACT message instead.
这段代码用于检测和计算列表框控件中重复的项目,也可以修改为处理组合列表框。
代码使用了SendMessage API 和ListBox LB_FINDSTRINGEXACT Windows消息来检查重复的项目。如果你修改代码来处理组合列表框,你应该使用CB_FINDSTRINGEXACT 消息。
来源: http://www.codeguru.com/vb_listbox/2036.shtml |
类别: |
|
发布者:
cbd002
|
|
最新发布源码包 |
软件包 |
版本号 |
日期 |
本地下载 |
2036_repeat |
 1.0  |
2004-04-18 |
下载 |
|
|