整了好久了 快疯了 自定义绘图 无法进入CDDS_ITEMPREPAINT
case NM_CUSTOMDRAW:
if (((LPNMHDR)lParam)-> idFrom == IDC_LISTVIEW)
{
LPNMLVCUSTOMDRAW lplvcd = (LPNMLVCUSTOMDRAW)lParam;
switch (lplvcd-> nmcd.dwDrawStage)
{
case CDDS_PREPAINT :
return CDRF_NOTIFYITEMDRAW;
case CDDS_ITEMPREPAINT:
//自绘函数 draw();
return CDRF_SKIPDEFAULT;
default:
return CDRF_DODEFAULT;
}
}
}
break;
if (((LPNMHDR)lParam)-> idFrom == IDC_LISTVIEW)
{
LPNMLVCUSTOMDRAW lplvcd = (LPNMLVCUSTOMDRAW)lParam;
switch (lplvcd-> nmcd.dwDrawStage)
{
case CDDS_PREPAINT :
return CDRF_NOTIFYITEMDRAW;
case CDDS_ITEMPREPAINT:
//自绘函数 draw();
return CDRF_SKIPDEFAULT;
default:
return CDRF_DODEFAULT;
}
}
}
break;
作者: hdukg 发布时间: 2011-06-14
http://topic.okbase.net/200609/2006091408/2686823.html
作者: healer_kx 发布时间: 2011-06-14