Listview
Ulrich Czekalla
ulrich.czekalla at utoronto.ca
Fri Dec 17 16:23:23 CST 2004
ChangeLog:
Ulrich Czekalla <ulrich at codeweavers.com>
Add partial handler for WM_PRINTCLIENT
-------------- next part --------------
Index: dlls/comctl32/listview.c
===================================================================
RCS file: /home/wine/wine/dlls/comctl32/listview.c,v
retrieving revision 1.398
diff -u -p -r1.398 listview.c
--- dlls/comctl32/listview.c 24 Nov 2004 18:28:31 -0000 1.398
+++ dlls/comctl32/listview.c 17 Dec 2004 23:13:19 -0000
@@ -8346,6 +8346,36 @@ static LRESULT LISTVIEW_Paint(LISTVIEW_I
return 0;
}
+
+/***
+ * DESCRIPTION:
+ * Paints/Repaints the listview control.
+ *
+ * PARAMETER(S):
+ * [I] infoPtr : valid pointer to the listview structure
+ * [I] hdc : device context handle
+ * [I] options : drawing options
+ *
+ * RETURN:
+ * Zero
+ */
+static LRESULT LISTVIEW_PrintClient(LISTVIEW_INFO *infoPtr, HDC hdc, DWORD options)
+{
+ FIXME("Partial Stub: (hdc=%p options=0x%08lx)\n", hdc, options);
+
+ if ((options & PRF_CHECKVISIBLE) && !IsWindowVisible(infoPtr->hwndSelf))
+ return 0;
+
+ if (options & PRF_ERASEBKGND)
+ LISTVIEW_EraseBkgnd(infoPtr, hdc);
+
+ if (options & PRF_CLIENT)
+ LISTVIEW_Paint(infoPtr, hdc);
+
+ return 0;
+}
+
+
/***
* DESCRIPTION:
* Processes double click messages (right mouse button).
@@ -9192,6 +9222,9 @@ LISTVIEW_WindowProc(HWND hwnd, UINT uMsg
case WM_NOTIFYFORMAT:
return LISTVIEW_NotifyFormat(infoPtr, (HWND)wParam, (INT)lParam);
+
+ case WM_PRINTCLIENT:
+ return LISTVIEW_PrintClient(infoPtr, (HDC)wParam, (DWORD)lParam);
case WM_PAINT:
return LISTVIEW_Paint(infoPtr, (HDC)wParam);
More information about the wine-patches
mailing list