[SDK] -rosctrls.h: Add GetItemPosition and SetItemPosition methods in CListView.
authorGiannis Adamopoulos <gadamopoulos@reactos.org>
Thu, 26 Jan 2017 17:03:35 +0000 (17:03 +0000)
committerGiannis Adamopoulos <gadamopoulos@reactos.org>
Thu, 26 Jan 2017 17:03:35 +0000 (17:03 +0000)
svn path=/trunk/; revision=73600

reactos/sdk/include/reactos/rosctrls.h

index 666bf0e..a597641 100644 (file)
@@ -214,6 +214,16 @@ public:
 
         SendMessage(LVM_GETITEMTEXT, iItem, (LPARAM) &itemInfo);
     }
+
+    BOOL GetItemPosition(int nItem, POINT* pPoint)
+    {
+        return (BOOL)SendMessage(LVM_GETITEMPOSITION, nItem, (LPARAM)pPoint);
+    }
+
+    BOOL SetItemPosition(int nItem, POINT* pPoint)
+    {
+        return (BOOL)SendMessage(LVM_SETITEMPOSITION, nItem, MAKELPARAM(pPoint->x, pPoint->y));
+    }
 };
 
 template<typename TItemData = DWORD_PTR>