Add OnShow and OnHide events.
Fix a bug where the scrollbars of a tree-view control would not be updated correctly.