hhctrl.ocx: Move more code from doWinMain.