CWnd::OnDrawItem
This method is called by the framework for the owner of an owner-draw button control, combo-box control, list-box control, or menu when a visual aspect of the control or menu has changed.
afx_msg void OnDrawItem(
int nIDCtl,
LPDRAWITEMSTRUCT lpDrawItemStruct );
也就是说,如果你的ListCtrl如果是具有Owner Draw属性的,就会在窗体就会在这个ListCtrl需要重画的任何时候响应OnDrawItem
在这里边可以处理
ODT_BUTTON Owner-drawn button
ODT_COMBOBOX Owner-drawn combo box
ODT_LISTBOX Owner-drawn list box
ODT_MENU Owner-drawn menu
ODT_LISTVIEW List view control
ODT_STATIC Owner-drawn static control
ODT_TAB Tab control
等类型的具有Owner Draw属性的控件。