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:
@@ -2385,6 +2385,21 @@ void wxListCtrl::OnPaint(wxPaintEvent& event)
|
||||
}
|
||||
}
|
||||
|
||||
WXLRESULT
|
||||
wxListCtrl::MSWWindowProc(WXUINT nMsg, WXWPARAM wParam, WXLPARAM lParam)
|
||||
{
|
||||
#ifdef WM_PRINT
|
||||
if ( nMsg == WM_PRINT )
|
||||
{
|
||||
// we should bypass our own WM_PRINT handling as we don't handle
|
||||
// PRF_CHILDREN flag, so leave it to the native control itself
|
||||
return MSWDefWindowProc(nMsg, wParam, lParam);
|
||||
}
|
||||
#endif // WM_PRINT
|
||||
|
||||
return wxControl::MSWWindowProc(nMsg, wParam, lParam);
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// virtual list controls
|
||||
// ----------------------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user