The LVM_GETORIGIN message retrieves the current view origin for a list view control. You can send this message explicitly or by using the ListView_GetOrigin macro.
LVM_GETORIGIN wParam = 0; lParam = (LPARAM) (LPPOINT) lpptOrg;
Returns TRUE if successful or FALSE if the current view is list or report view.