From 3139a474035b1dea3e63ddefd93941095bdfa1a5 Mon Sep 17 00:00:00 2001 From: David Webster Date: Thu, 30 Mar 2000 22:17:43 +0000 Subject: [PATCH] Fix for the runaway WM_PAINT message in wxFrame. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_2_BRANCH@7004 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/os2/app.cpp | 2 +- src/os2/frame.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/os2/app.cpp b/src/os2/app.cpp index 4e41b7077f..ba33211cbe 100644 --- a/src/os2/app.cpp +++ b/src/os2/app.cpp @@ -555,7 +555,7 @@ bool wxApp::DoMessage() { BOOL bRc = ::WinGetMsg(vHabmain, &svCurrentMsg, HWND(NULL), 0, 0); - wxUsleep(1000); +// wxUsleep(1000); if (bRc == 0) { // got WM_QUIT diff --git a/src/os2/frame.cpp b/src/os2/frame.cpp index 31ce6652e5..f451f80e67 100644 --- a/src/os2/frame.cpp +++ b/src/os2/frame.cpp @@ -1150,7 +1150,7 @@ bool wxFrame::HandlePaint() { RECTL vRect; - if (::WinQueryUpdateRect(m_hFrame, &vRect)) + if (::WinQueryUpdateRect(GetHwnd(), &vRect)) { if (m_bIconized) { @@ -1169,7 +1169,7 @@ bool wxFrame::HandlePaint() // is being processed // RECTL vRect2; - HPS hPs = ::WinBeginPaint(m_hFrame, NULLHANDLE, &vRect2); + HPS hPs = ::WinBeginPaint(GetHwnd(), NULLHANDLE, &vRect2); // // Erase background before painting or we get white background