Add CD event IA!=0

Add CD event IA!=0
Fix nil self.wndMain