Listview: Implemented Get/SetToolTips functions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Changelog:   
      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 9 May 2003 18:33:33 -0000
@@ -270,6 +270,7 @@
   WNDPROC EditWndProc;
   INT nEditLabelItem;
   DWORD dwHoverTime;
+  HWND hwndToolTip;
 
   DWORD lastKeyPressTimestamp;
   WPARAM charCode;
@@ -391,6 +392,8 @@
 static INT LISTVIEW_GetTopIndex(LISTVIEW_INFO *);
 static BOOL LISTVIEW_EnsureVisible(LISTVIEW_INFO *, INT, BOOL);
 static HWND CreateEditLabelT(LISTVIEW_INFO *, LPCWSTR, DWORD, INT, INT, INT, INT, BOOL);
+static HWND LISTVIEW_GetToolTips( LISTVIEW_INFO *);
+static HWND LISTVIEW_SetToolTips( LISTVIEW_INFO *, HWND);
 
 /******** Text handling functions *************************************/
 
@@ -5729,6 +5741,20 @@
 
 /***
  * DESCRIPTION:
+ * Returns tooltip associated to the listview
+ *
+ * PARAMETER(S):
+ * [I] infoPtr : valid pointer to the listview structure
+ *
+ * RETURN:
+ *   Handle on listview tooltip
+ */
+static HWND LISTVIEW_GetToolTips( LISTVIEW_INFO *infoPtr) {
+    return infoPtr->hwndToolTip;
+}
+
+/***
+ * DESCRIPTION:
  * Determines which listview item is located at the specified position.
  *
  * PARAMETER(S):
@@ -6982,7 +7008,23 @@
     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 */
 
@@ -7215,6 +7257,9 @@
     }
   }
 
+  /* init ToolTip */
+  infoPtr->hwndToolTip = NULL;
+ 
   return 0;
 
 fail:
@@ -8623,8 +8667,7 @@
   /* case LVM_GETTILEVIEWINFO: */
 
   case LVM_GETTOOLTIPS:
-    FIXME("LVM_GETTOOLTIPS: unimplemented\n");
-    return FALSE;
+    return (LRESULT)LISTVIEW_GetToolTips(infoPtr);
 
   case LVM_GETTOPINDEX:
     return LISTVIEW_GetTopIndex(infoPtr);
@@ -8781,7 +8824,8 @@
 
   /* case LVM_SETTILEWIDTH: */
 
-  /* case LVM_SETTOOLTIPS: */
+  case LVM_SETTOOLTIPS:
+    return (LRESULT)LISTVIEW_SetToolTips(infoPtr, (HWND)lParam);
 
   /* case LVM_SETUNICODEFORMAT: */
 



[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux