Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
BOOLGetItemPosition(intnItem**,LPPOINTlpPoint) const;**
Return Value
Nonzero if successful; otherwise zero.
Parameters
nItem
The index of the item whose position is to be retrieved.
lpPoint
Address of a structure that receives the position of the item’s upper-left corner, in view coordinates.
Remarks
Retrieves the position of a list view item.
Example
// The pointer to my list view control.
extern CListCtrl* pmyListCtrl;
POINT pt;
// Move all items in the list control 100 pixels to the right.
UINT i, nCount = pmyListCtrl->GetItemCount();
for (i=0;i < nCount;i++)
{
pmyListCtrl->GetItemPosition(i, &pt);
pt.x += 100;
pmyListCtrl->SetItemPosition(i, pt);
}