Fixes to resolve default Client Window painting when EVT_PAINT events are captured by derived classes downstream.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9068 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
David Webster
2001-01-08 19:00:47 +00:00
parent 6411a32c16
commit fb83aca503
2 changed files with 33 additions and 4 deletions

View File

@@ -2845,6 +2845,35 @@ bool wxWindow::HandlePaint()
m_updateRegion = wxRegion(hRgn);
vEvent.SetEventObject(this);
if (!GetEventHandler()->ProcessEvent(vEvent))
{
HPS hPS;
hPS = ::WinBeginPaint( GetHwnd()
,NULLHANDLE
,&vRect
);
if(hPS)
{
::GpiCreateLogColorTable( hPS
,0L
,LCOLF_CONSECRGB
,0L
,(LONG)wxTheColourDatabase->m_nSize
,(PLONG)wxTheColourDatabase->m_palTable
);
::GpiCreateLogColorTable( hPS
,0L
,LCOLF_RGB
,0L
,0L
,NULL
);
::WinFillRect(hPS, &vRect, GetBackgroundColour().GetPixel());
::WinEndPaint(hPS);
}
}
return (GetEventHandler()->ProcessEvent(vEvent));
} // end of wxWindow::HandlePaint