共用方式為


CListCtrl::GetOrigin

Retrieves the current view origin for a list view control.

BOOL GetOrigin(
   LPPOINT lpPoint 
) const;

Parameters

  • lpPoint
    Address of a POINT structure that receives the view origin.

Return Value

Nonzero if successful; otherwise zero. However, if the control is in report view, the return value is always zero.

Requirements

Header: afxcmn.h

See Also

Concepts

CListCtrl Class

CListCtrl Members

Hierarchy Chart

CListCtrl::GetItemPosition

CListCtrl::SetItemPosition