CListCtrl在大图标LVS_ICON方式下,怎么令图标下的文字显示四行? (没有图标被选择的情况下)我想自画,但不知要重载哪个函数?DrawItem()这个函数只在REPORT模式下起作用,在我要的大图标方式下,不起作用.我试过OnCustomDraw(), 没实现的我愿望.请高手指点一下! 谢谢!

解决方案 »

  1.   


    LVS_OWNERDRAWFIXED 
    The owner window can paint items in report view. The list-view control sends a WM_DRAWITEM message to paint each item; it does not send separate messages for each subitem. The itemData member of the DRAWITEMSTRUCT structure contains the item data for the specified list-view item. 
      

  2.   

    http://www.winehq.org/hypermail/wine-patches/2002/02/att-0141/00-diff68.diff
      

  3.   

    to vcmute(横秋) ( ):
        我只想自画每个ITEM,不想把整个CListCtrl都自画。    你想想,如果自画整个CListCtrl,那缩放窗口时自动换行自动排列各个大图标这些功能也要我手工去写了,我不累死。我不如从CWnd派生一个类,想怎么画就怎么画,何必在CListCtrl一棵树上吊死。
        现在我就是想省点代码,想找到自画CListCtrl里LVS_ICON模式下的ITEM的方法,免去我从CWnd派生的苦力活。    不好意思,怪我上面没说清楚。