社区
C++ Builder
帖子详情
关于MFC中的List Control控件
qq_37858961
2017-07-16 09:31:06
LONG lStyle;
lStyle = GetWindowLong(RasterBI.m_hWnd, GWL_STYLE);// 获取当前窗口style
lStyle &= ~LVS_TYPEMASK; // 清除显示方式位
lStyle |= LVS_REPORT; // 设置style
SetWindowLong(RasterBI.m_hWnd, GWL_STYLE, lStyle);// 设置style
RasterBI.InsertColumn(0, "属性", LVCFMT_LEFT, 108);
RasterBI.InsertColumn(1, "值", LVCFMT_LEFT, 108);
RasterBI.InsertItem(1,"横向X大小");
RasterBI.InsertItem(2,"横向Y大小");
RasterBI.InsertItem(3,"波段数");
lStyle = GetWindowLong(VectorBI.m_hWnd, GWL_STYLE);// 获取当前窗口style
lStyle &= ~LVS_TYPEMASK; // 清除显示方式位
lStyle |= LVS_REPORT; // 设置style
SetWindowLong(VectorBI.m_hWnd, GWL_STYLE, lStyle);// 设置style
VectorBI.InsertColumn(0, "属性", LVCFMT_LEFT, 108);
VectorBI.InsertColumn(1, "值", LVCFMT_LEFT, 108);
VectorBI.InsertItem(1,"对象个数");
VectorBI.InsertItem(2,"图层个数");
想问一下为什么边上会多出一列。。。怎么消除
...全文
135
回复
打赏
收藏
关于MFC中的List Control控件
LONG lStyle; lStyle = GetWindowLong(RasterBI.m_hWnd, GWL_STYLE);// 获取当前窗口style lStyle &= ~LVS_TYPEMASK; // 清除显示方式位 lStyle |= LVS_REPORT; // 设置style SetWindowLong(RasterBI.m_hWnd, GWL_STYLE, lStyle);// 设置style RasterBI.InsertColumn(0, "属性", LVCFMT_LEF
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
MFC
实现自绘
List
Control
控件
MFC
实现
List
Control
控件
的自绘,选
中
行颜色变化,行间距设置,行字体大小设置等
MFC
中
List
Control
控件
功能扩展
扩展了
MFC
中
list
Control
的功能,按字符串、日期、数字排序,点击要排序的列表头即可实现排序。
MFC
List
Control
控件
拖拽文件扩展
MFC
List
Control
控件
拖拽文件扩展, 主要演示了如何扩展
MFC
已有
控件
,以及简单实现了
List
Control
的文件拖拽功能
【
MFC
】
List
Control
控件
实现翻页
List
Control
控件
实现翻页,希望对大家有帮助!
MFC
中
List
Control
的简单使用
MFC
中
List
Control
的简单使用,里面有单击选
中
删除,双击修改,是一个Dialog类,用起来更方便,还有文本文件的读取
C++ Builder
13,825
社区成员
102,679
社区内容
发帖
与我相关
我的任务
C++ Builder
C++ Builder相关内容讨论区
复制链接
扫一扫
分享
社区描述
C++ Builder相关内容讨论区
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章