need help with custom drawn ListCtrl
C / C++ / MFC
1
Posts
1
Posters
0
Views
1
Watching
-
Hi, I'm trying to custom draw a list control. I'm also using it as a virtual list supplying data handling the LVN_GETDISPINFO message. I've handled the NM_CUSTOMDRAW to custom draw only specific Items the problem is the iSubItem variable in the LPNMLVCUSTOMDRAW structure is always zero:confused: when I'm expecting it to change. I'm depending on it to idententify which item / subitem it is currently drawing. this I'm doing when dwDrawStage == CDDS_ITEMPREPAINT. am i doing something wrong here. I've seen a sample application XListCtrl in this site which seems to work. am i doing something wrong here. please give me directions as to how to resolve this problem. thanks in advance.:rose: