The LVM_GETVIEWRECT message retrieves the bounding rectangle of all items in the list view control. The list view must be in icon or small icon view. You can send this message explicitly or by using the ListView_GetViewRect macro.
LVM_GETVIEWRECT wParam = 0; lParam = (LPARAM) (RECT FAR *) prc;
Returns TRUE if successful or FALSE otherwise.