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

来源:互联网 发布:免费打网络电话网 编辑:程序博客网 时间:2024/05/22 04:58

 

 

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了。。

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

原创粉丝点击