wxListCtrl之InsertItem与SetItem的问题
来源:互联网 发布:access数据库 工具 编辑:程序博客网 时间:2024/06/04 17:40
在使用wxListCtrl的时候,添加列表时会自动产生代码。 但是在之后使用SetItem的时候在列表中没有看到效果,InsertItem能够生效。查找了很多资料都没有找到结果。
最后解决如下:这是因为列表的属性中没有wxLC_REPORT,将这个属性添加进去即可,同时要去掉wxLC_LIST和wxLC_VIRTUAL(问题出在这里); 之后再次使用这两个类的时候就能够都看到了。
InsertItem的用法:
是用来插入所有行的第一列,插入成功后才能使用SetItem。
long wxListCtrl::InsertItem(long index,const wxString &label,int imageIndex)
SetItem的用法:
是用来插入所有行的每一列(第一列除外)。
long wxListCtrl:SetItem(long index,int column,const wxString &label,int imageld = -1)
0 0
- wxListCtrl之InsertItem与SetItem的问题
- CListCtrl控件的InsertItem和SetItemText和SetItem三个函数的区别
- CListCtrl控件的InsertItem和SetItemText和SetItem三个函数的区别
- wxListCtrl的基本用法
- CListCtrl之InsertItem 出错
- 跟随CList::InsertItem()后的SetItemText() 不显示的问题
- InsertItem的用法
- mfc的CListCtrl关于InsertItem
- Release版本下SetItem的错误
- ListCtrl中InsertItem的函数实现
- CTreeCtrl 类的InsertItem成员函数
- VC++中InsertItem和SetItemText的区别
- html5 动态存储 localStorage.name 和localStorage.setItem()的差别
- 关于localStorage的一些操作如getItem,setItem等
- 关于SetItem;
- 关于setitem
- CListCtrl控件中InsertItem和SettItemtext函数的用法简介
- CListCtrl控件中InsertItem和SettItemtext函数的用法简介
- select、poll、epoll之间的区别总结[整理]
- 读取菜单键home键返回键的背光节点,控制其闪烁
- BZOJ 3265 志愿者招募加强版 单纯形
- 多模式匹配算法:AC自动机的C++实现
- hdu 5001(dp)
- wxListCtrl之InsertItem与SetItem的问题
- strchr
- cocos2d做一个微秒级的计数器
- H.264中NALU、RBSP、SODB的关系 (弄清码流结构)
- K好数(DP)
- Linux系统ELF文件二进制格式分析(三)
- snprintf函数用法
- 浅析单例设计模式
- Android应用开发相关下载资源