The source code even does not work!!
I just downloaded and compiled the code. It works fine for me. I made a simple mod to the ProcessCustomDraw function to accomplish your task of changing the color of a particular selected listview item.

Maybe I'm just the exception to the rule.