Fix the PicViewCtrl and RulerCtrl clear problems