Fix behavior of TVS_SINGLEEXPAND style broken in Corel merge. Optimize redrawing in TREEVIEW_SetItemA() to redraw only if the item changes.