extracted check for wxListCtrl in WM_PRINT handler to wxListCtrl itself, base class shouldn't have to worry about its derived classes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32202 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -2311,15 +2311,9 @@ WXLRESULT wxWindowMSW::MSWWindowProc(WXUINT message, WXWPARAM wParam, WXLPARAM l
|
||||
break;
|
||||
}
|
||||
|
||||
#ifndef __WXWINCE__
|
||||
#ifdef WM_PRINT
|
||||
case WM_PRINT:
|
||||
{
|
||||
#if wxUSE_LISTCTRL
|
||||
// Don't call the wx handlers in this case
|
||||
if ( wxIsKindOf(this, wxListCtrl) )
|
||||
break;
|
||||
#endif
|
||||
|
||||
if ( lParam & PRF_ERASEBKGND )
|
||||
HandleEraseBkgnd((WXHDC)(HDC)wParam);
|
||||
|
||||
@@ -2327,7 +2321,7 @@ WXLRESULT wxWindowMSW::MSWWindowProc(WXUINT message, WXWPARAM wParam, WXLPARAM l
|
||||
processed = HandlePaint();
|
||||
}
|
||||
break;
|
||||
#endif
|
||||
#endif // WM_PRINT
|
||||
|
||||
case WM_CLOSE:
|
||||
#ifdef __WXUNIVERSAL__
|
||||
|
Reference in New Issue
Block a user