修改Listctrl的显示Style
2005-09-20 08:35
253 查看
//if the current style is not report, the following three lines is not needGetListCtrl().DeleteAllItems();
for(int h=GetListCtrl().GetHeaderCtrl()->GetItemCount();h>0;h--)
GetListCtrl().DeleteColumn(h-1);
LONG lStyle;//Get current window style
lStyle=GetWindowLong(GetListCtrl().GetSafeHwnd(),GWL_STYLE);//Clear original type mask lStyle &= ~LVS_TYPEMASK;
//Add new type style,the sample is iconlStyle|=LVS_ICON; //Ok,set new type style
SetWindowLong(GetListCtrl().GetSafeHwnd(),GWL_STYLE,lStyle);
for(int h=GetListCtrl().GetHeaderCtrl()->GetItemCount();h>0;h--)
GetListCtrl().DeleteColumn(h-1);
LONG lStyle;//Get current window style
lStyle=GetWindowLong(GetListCtrl().GetSafeHwnd(),GWL_STYLE);//Clear original type mask lStyle &= ~LVS_TYPEMASK;
//Add new type style,the sample is iconlStyle|=LVS_ICON; //Ok,set new type style
SetWindowLong(GetListCtrl().GetSafeHwnd(),GWL_STYLE,lStyle);
相关文章推荐
- 修改Listctrl的显示Style
- 修改Listctrl的显示Style
- 动态调整对话框属性(去掉标题栏,去掉边框,修改类似成Border:NONE样式)(调用ModifyStyle和ModifyStyleEx,然后调用SetWindowPos重新显示)
- 获取AIX文件最后修改时间,类似Linux的time-style显示的时间格式
- VS2008中使用JSONCPP方法修改版本能运行显示结果
- Android 基础一 TextView,Style样式,Activity 传值,选择CheckBox 显示密码
- Mysql的列修改成行并显示数据的简单实现
- Meteor 修改查询条件页面首次显示的时候刷新问题
- 修改stb_image.c以让Duilib直接支持Ico格式的图标显示
- SecureCRT修改显示行数
- 学习如何修改echarts使其显示数据为后台传到前台的数据
- 实例讲解C#操作Xml文件的插入、修改、删除和显示代码(转)
- 记录并显示网页的最后修改时间
- 使easyui中combobox限制显示的数量以提升效率(修改源码)
- 2016/05/05 smarty ① 登录 ②主页面 ③删除 ④让缩略信息显示完整 (补:增加 修改 )
- 针对复选框多选后以字符串形式显示在数据库以及修改页面复选框的回显数据库
- DedeEIMS路径优化栏目显示类型修改 [整理]
- android 系统主界面底部工具栏上的图标显示与修改
- 20.IDA-修改二进制文件、显示修改点
- html页面中显示审查元素时Element.style