Listview: Implemented Get/SetToolTips functions (rewrite 2)
BiGgUn
fbiggun at hotmail.com
Sat May 10 05:19:14 CDT 2003
Hi
Yet another rewrite for those picky men :)
Stephan
Changelog :
Listview: Implemented Get/SetToolTips functions
Index: dlls/comctl32/listview.c
===================================================================
RCS file: /home/wine/wine/dlls/comctl32/listview.c,v
retrieving revision 1.348
diff -u -r1.348 listview.c
--- dlls/comctl32/listview.c 2 May 2003 20:14:33 -0000 1.348
+++ dlls/comctl32/listview.c 10 May 2003 10:05:51 -0000
@@ -270,6 +270,7 @@
WNDPROC EditWndProc;
INT nEditLabelItem;
DWORD dwHoverTime;
+ HWND hwndToolTip;
DWORD lastKeyPressTimestamp;
WPARAM charCode;
@@ -6982,7 +6991,24 @@
return TRUE;
}
-/* LISTVIEW_SetToolTips */
+/***
+ * DESCRIPTION:
+ * Determines which listview item is located at the specified position.
+ *
+ * PARAMETER(S):
+ * [I] infoPtr : valid pointer to the listview structure
+ * [I] hwndNewToolTip : handle to new ToolTip
+ *
+ * RETURN:
+ * old tool tip
+ */
+static HWND LISTVIEW_SetToolTips( LISTVIEW_INFO *infoPtr, HWND hwndNewToolTip)
+{
+ HWND hwndOldToolTip = infoPtr->hwndToolTip;
+ infoPtr->hwndToolTip = hwndNewToolTip;
+ return hwndOldToolTip;
+}
+
/* LISTVIEW_SetUnicodeFormat */
/* LISTVIEW_SetWorkAreas */
@@ -8623,8 +8648,7 @@
/* case LVM_GETTILEVIEWINFO: */
case LVM_GETTOOLTIPS:
- FIXME("LVM_GETTOOLTIPS: unimplemented\n");
- return FALSE;
+ return (LRESULT)infoPtr->hwndToolTip;
case LVM_GETTOPINDEX:
return LISTVIEW_GetTopIndex(infoPtr);
@@ -8781,7 +8805,8 @@
/* case LVM_SETTILEWIDTH: */
- /* case LVM_SETTOOLTIPS: */
+ case LVM_SETTOOLTIPS:
+ return (LRESULT)LISTVIEW_SetToolTips(infoPtr, (HWND)lParam);
/* case LVM_SETUNICODEFORMAT: */
More information about the wine-patches
mailing list