int CTheApp::ExitInstance()
{
+#if !START_WITH_MFC_WINDOW
+ delete m_pMainWnd;
+#endif
+
if ( wxTheApp )
wxTheApp->OnExit();
wxEntryCleanup();
MyChild::~MyChild()
{
+ if ( IsLastBeforeExit() )
+ PostQuitMessage(0);
}
void MyChild::OnQuit(wxCommandEvent& WXUNUSED(event))
// Dummy MFC window for specifying a valid main window to MFC, using
// a wxWidgets HWND.
-CDummyWindow::CDummyWindow(HWND hWnd):CWnd()
+CDummyWindow::CDummyWindow(HWND hWnd)
{
Attach(hWnd);
}