Updates to keep OS/2 Frame apps from crashing on exit. Fixes WM_QUIT processing

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_2_BRANCH@8257 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
David Webster
2000-09-05 14:46:24 +00:00
parent 77bb48f9bb
commit 261df93f45
2 changed files with 2 additions and 3 deletions

View File

@@ -175,7 +175,7 @@ wxFrame::~wxFrame()
if (wxTheApp->GetExitOnFrameDelete()) if (wxTheApp->GetExitOnFrameDelete())
{ {
::WinPostMsg(GetHWND(), WM_QUIT, 0, 0); ::WinPostMsg(NULL, WM_QUIT, 0, 0);
} }
} }
wxModelessWindows.DeleteObject(this); wxModelessWindows.DeleteObject(this);

View File

@@ -1881,7 +1881,6 @@ MRESULT wxWindow::OS2WindowProc(
case WM_DESTROY: case WM_DESTROY:
HandleDestroy(); HandleDestroy();
bProcessed = TRUE; bProcessed = TRUE;
delete this;
break; break;
case WM_MOVE: case WM_MOVE:
@@ -2426,7 +2425,7 @@ bool wxWindow::OS2Create(
wxAssociateWinWithHandle((HWND)m_hWnd wxAssociateWinWithHandle((HWND)m_hWnd
,this ,this
); );
// //
// Now need to subclass window. // Now need to subclass window.
// //