[SDK] -rosctrls.h: Add GetItemPosition and SetItemPosition methods in CListView.

svn path=/trunk/; revision=73600
This commit is contained in:
Giannis Adamopoulos 2017-01-26 17:03:35 +00:00
parent 3938ea389a
commit 3dc773f430

View 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>