Partager via


LVM_GETORIGIN (Windows Embedded CE 6.0)

1/6/2010

This message retrieves the current view origin for a list-view control. You can send this message explicitly or by using the ListView_GetOrigin macro.

Syntax

LVM_GETORIGIN wParam = 0; 
    lParam = (LPARAM)(LPPOINT) lpptOrg;

Parameters

  • wParam
    Not used.
  • lpptOrg
    Long pointer to a POINT structure that receives the view origin.

Return Value

TRUE indicates success. FALSE indicates that the current view is list or report view.

Remarks

This message retrieves the current view origin for a list-view control. The view origin is the set of coordinates, relative to the visible area of the list-view control, that correspond to the view coordinates (0,0). You can send this message explicitly or by using the ListView_GetOrigin macro. You should use this message only in icon or small icon view; if you use it in list or report view, it returns an error.

Requirements

Header commctrl.h
Windows Embedded CE Windows CE 1.0 and later

See Also

Reference

List-View Controls Messages
ListView_GetOrigin
POINT