小弟需要在设置成report时,每个单元格都有icon,急求解决方法
另一个单元格可否插入几个icon?

解决方案 »

  1.   

    每个单元?在每一行第一个单元插入ICON倒是很简单。要是每个都要插入的话,我想可能只有派生clistctrl了,重载DrawItem()自己画
      

  2.   

    CListCtrl::DrawItem
    This method is called by the framework when a visual aspect of an owner-draw list view control changes. The itemAction member of the DRAWITEMSTRUCT structure defines the drawing action that is to be performed. virtual void DrawItem(
    LPDRAWITEMSTRUCT lpDrawItemStruct );
      

  3.   

    http://community.csdn.net/Expert/topic/3802/3802598.xml?temp=.4544031
      

  4.   

    使用扩展属性里的  LVS_EX_SUBITEMIMAGES   属性就可以了
      

  5.   

    codeguru上有现成的类,楼主可以参考一下。