if wxUSE_MFC is defined.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18294
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
bool MyApp::OnInit(void)
{
// Don't exit app when the top level frame is deleted
bool MyApp::OnInit(void)
{
// Don't exit app when the top level frame is deleted
-// SetExitOnFrameDelete(FALSE);
+ SetExitOnFrameDelete(TRUE);
wxFrame* frame = CreateFrame();
return TRUE;
wxFrame* frame = CreateFrame();
return TRUE;
#include "wx/msw/private.h"
#include "wx/msw/private.h"
+// Don't implement WinMain if we're building an MFC/wxWindows
+// hybrid app.
+#if wxUSE_MFC && !defined(NOMAIN)
+#define NOMAIN 1
+#endif
+
// from src/msw/app.cpp
extern void WXDLLEXPORT wxEntryCleanup();
// from src/msw/app.cpp
extern void WXDLLEXPORT wxEntryCleanup();