关于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 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

13,825

社区成员

发帖
与我相关
我的任务
社区描述
C++ Builder相关内容讨论区
社区管理员
  • 基础类社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧