03-21-2007, 04:09 PM
Why? When you click Cancel or call clo, ShowDialog returns 0, and no code is executed after if(!ShowDialog(...)) ret. The code that is executed after clo is required to properly close the window without memory leaks etc.