I've been trying to do some custom drawing of treeviews and listviews.
According to the MSDN, I should be getting up to four notifications for
paint operations (PrePaint, PostPaint, PreErase, PostErase) For the
treeview, I get pre- and post-paint notifications, for the control and
for individual items. For the list view, I get pre- and post-paint
notifications for the control, but only the pre- notification for items
and subitems in the control. I never get pre- or post-erase
notifications for the controls or the items in the control. I am
setting the appropriate return values in repsonse to the
pre-notifications so I should be getting (according to MSDN) all of the
subsequent notifications. I am using the version 4.72.3611.1900 of the
Has anyone tried this or had any luck in doing this?