]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/listctrl.cpp
replaced complicated and not working test for WinCE version with a simple and working...
[wxWidgets.git] / src / msw / listctrl.cpp
index 49c6d04c040586e1c6ad599d984520ad268da589..b3894f1461605ed4b76fcb91c782a553e6794b1f 100644 (file)
@@ -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
 // ----------------------------------------------------------------------------