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.
http://www.csdn.net/expert/topic/809/809890.xml?temp=.1718256
如何将imagelist 和 Microsoft ListView 6.0 控件相关联
theCtrl.SetImageList(...),是这个要求吧?
我的问题还没解决呢。
www.codeguru.com
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.
可以返回一个结构体,包括字体、颜色、背景颜色比own draw简单的多