finish base window class, run it ok.