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:
@@ -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
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user