add RePaint to TreeView control. Corrected some compiler warnings.