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
This commit is contained in:
David Webster
2000-03-30 22:17:43 +00:00
parent 6577ef5ffc
commit 3139a47403
2 changed files with 3 additions and 3 deletions

View File

@@ -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

View File

@@ -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