I am new to C++, CB and wxWidgets and am following some tutorials. My problem is, in some stage of development, 'X' button works fine (the one in top right corner of application window, when I run it). Then I make some change to application, run it again, and 'X' doesn't work anymore. My OnQuit() function has
Close();
event.Skip(TRUE);
in it. Apart from this button, application works as expected. What can be the source of this error (X button not working) ?
EDIT: I remember somewhere to put 'Destroy()' in said function, but it seems like a patch, not a solution.