I created a list view class that uses Custom Draw for its rendering. It all works well except that it doesn't render anything. I subclassed its parent window to catch the NM_CUSTOMDRAW
notification as a WM_NOTIFY
message. However, it appears that WM_NOTIFY
is only triggered a few times during creation of the control and never again after that. So the NM_CUSTOMDRAW
code is never executed.
I checked with Winspector Spy so see if the control is laid out correctly in the parent window and that seems to be fine.
Does anyone have a clue about what I may be doing wrong?
The code can be found online: