Como dije lo q busco es obtener la la estructura rect de un item de un ListView x. Me puse a ver un cacho y logre sacar este code.
Código
Public Type RECT Left As Long Top As Long Right As Long Bottom As Long End Type Public Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal Hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, ByRef lParam As Any) As Long Public Declare Function SetParent Lib "user32" (ByVal hWndChild As Long, ByVal hWndNewParent As Long) As Long Public Declare Function GetParent Lib "user32" (ByVal Hwnd As Long) As Long Public Function tapRectItem(ByVal lnghWnd As Long, ByVal Index As Integer) Dim lRet As Long Dim tRec As RECT lRet = SendMessage(lnghWnd, LVM_GETITEMRECT, Index, VarPtr(tRec)) With Form1.Picture1 .Top = tRec.Top .Left = tRec.Left .Height = tRec.Bottom - tRec.Top .Width = tRec.Right - tRec.Left .Visible = True lRet = SetParent(.Hwnd, lnghWnd) End With End Function
El problema es que no me carga la variable 'trec' con los valores.
Espero puedan ayudarme y desde ya gracias --<[(x)]>-..