From: Vadim Zeitlin Date: Thu, 18 Sep 2003 11:10:51 +0000 (+0000) Subject: corrected the example of wxMessageBox() usage X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/933b675ed41f626e6573a0c9c402acbc0283d2da corrected the example of wxMessageBox() usage git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23659 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/docs/latex/wx/function.tex b/docs/latex/wx/function.tex index 18b28a1470..0318e25402 100644 --- a/docs/latex/wx/function.tex +++ b/docs/latex/wx/function.tex @@ -1954,7 +1954,7 @@ For example: int answer = wxMessageBox("Quit program?", "Confirm", wxYES_NO | wxCANCEL, main_frame); if (answer == wxYES) - delete main_frame; + main_frame->Close(); ... \end{verbatim}