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