好像在CListView::OnDraw(CDC* pDC)中改变没有效果。

解决方案 »

  1.   

    还有两个问题,也请赐教:http://www.csdn.net/expert/topic/816/816910.xml?temp=.8320429
    http://www.csdn.net/expert/topic/809/809890.xml?temp=.1718256
      

  2.   

    请问:
    如何将imagelist 和 Microsoft ListView 6.0 控件相关联
      

  3.   

    CListCtrl& theCtrl=GetListCtrl();
    theCtrl.SetImageList(...),是这个要求吧?
    我的问题还没解决呢。
      

  4.   

    好像在代码专家里看到过这个问题的解决方法,你自己去找找看。
    www.codeguru.com
      

  5.   

    listctrl is not common window, any thing you do in OnDraw will not work.
    if you want to change font, just 
    CListView::GetListCtrl().SetFontif not work, set listctrl to ownerdraw style, draw everything yourself.in this method, anything can be fulfilled. 
    almost all listctrl sample in codeguru is ownerdraw style listctrl.
      

  6.   

    用custom draw看MSDN的list control部分吧大概原理是捕捉那个custom draw 的notify
    可以返回一个结构体,包括字体、颜色、背景颜色比own draw简单的多
      

  7.   

    我用OnCustomDrow已经更改了ITEM的字体,但是ColumnHeader的字体改不过来。用什么办法呢?