Fix some problem on PixelViewCtrl on Windows