CListBox的AddString 排序问题
来源:互联网 发布:什么是算法设计 编辑:程序博客网 时间:2024/05/17 22:27
在用CListBox添加元素时发现显示的顺序与预期的不同
原因:
CListBox::AddString
RemarksCall this member function to add a string to a list box. If the list box was not created with the LBS_SORT style, the string is added to the end of the list. Otherwise, the string is inserted into the list, and the list is sorted. If the list box was created with the LBS_SORT style but not the LBS_HASSTRINGS style, the framework sorts the list by one or more calls to the CompareItem member function.
CListBox默认对各项进行排序,在属性中把sort改为false就解决问题了,或者用InsertString(),而不是 AddString()。InsertString() 不会导致 LBS_SORT 清单进行排序
- CListBox的AddString 排序问题
- CListBox的AddString 排序问题
- MFC的CListBox控件使用LBS_OWNERDRAWVARIABLE风格不能AddString的问题
- ListBox设置AddString排序
- ccombobox addstring 顺序问题
- CListBox问题
- 请教 CListbox 与MoveWindow 的问题!
- CListCtrl 和 CListBox的设置选中问题
- CListCtrl 和 CListBox的设置选中问题
- error C2664: “CListBox::AddString”: 不能将参数 从“const char [5]”转换为“LPCTSTR”
- 解决CListBox 响应Shift和Ctrl键盘的问题
- CListBox频繁插入删除数据时,闪烁的问题
- 关于CListBox和CComboBox修改窗口Style的问题
- CListBox频繁插入删除数据时,闪烁的问题
- 关于mfc重载CListbox控件出现参数错误的问题
- CLISTBOX 的drawitem
- CListBox的糊涂使用
- CListBox的若干操作
- 2011 Alibaba Programming Contest_1009_Board Game Dice
- mfc 单文档 退出
- Java高手真经为您规划Java技术体系
- 2011 阿里巴巴程序公开赛
- Usaco 4.2.2 完美的牛栏
- CListBox的AddString 排序问题
- 遍历目录所有文件
- Fisher线性判别
- jmeter之“聚合报告”
- 菜鸟之驱动开发5
- 归并排序(C)
- servlet3.0 新特性
- 持续集成之“自动化部署”
- 练习--链式二叉树