The answer I got there about the X button: <quote> It's very well documented and covered that the [X] is *not* a close, but a minimize button. Turn off the minimize to chage it to [ok] and it will close the window, allowing you to catch WM_CLOSE, or search for "smart minimize" </quote> -- Felipe Monteiro de Carvalho