FIX: Improper custom draw events handling

This patch is to fix a bug that Win64 DFL64 program will crash if it uses treeview icon.