现在的位置: 首页 > 综合 > 正文

VC++ 关于ClistCtrl小图标显示的问题!!

2014年01月26日 ⁄ 综合 ⁄ 共 403字 ⁄ 字号 评论关闭

 

 

1.Clistctrl用过小图标模式来显示这样的文件时,就会出现上图所示的情况。。

这样很不好看,怎么解决哪?其实很简单。。

 

BOOL SetColumnWidth(
   int nCol,
   int cx 
);

Parameters

nCol

Index of the column for which the width is to be set. In list view, this parameter must be 0.

cx

The new width of the column. Can be either LVSCW_AUTOSIZE or
LVSCW_AUTOSIZE_USEHEADER
, as described in LVM_SETCOLUMNWIDTH in the
Platform SDK
.

大家可以用这个函数来设置。Clistctrl显示的宽度!!!

这样就能调整界面显示的Items了。。

 对于字符串比较长的,大家可以截取字符串用 省略号 来显示。。。具体实现你自己体会吧!!!

抱歉!评论已关闭.