HandlePrintClient shouldn't go above a top-level window
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34014 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
2830b4a411
commit
6a52ea5cb8
1 changed files with 4 additions and 0 deletions
|
|
@ -4170,6 +4170,10 @@ bool wxWindowMSW::HandlePrintClient(WXHDC hDC)
|
|||
//
|
||||
// also note that in this case lParam == PRF_CLIENT but we're
|
||||
// clearly expected to paint the background and nothing else!
|
||||
|
||||
if ( IsTopLevel() || InheritsBackgroundColour() )
|
||||
return false;
|
||||
|
||||
for ( wxWindow *win = GetParent(); win; win = win->GetParent() )
|
||||
{
|
||||
if ( win->MSWPrintChild(hDC, (wxWindow *)this) )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue