Win32-GUI
view release on metacpan or search on metacpan
ListView.xs view on Meta::CPAN
int index
PREINIT:
POINT pt;
PPCODE:
if (ListView_GetItemPosition(handle,index,&pt) == TRUE) {
EXTEND(SP, 2);
XST_mIV(0, pt.x);
XST_mIV(1, pt.y);
XSRETURN(2);
}
else
XSRETURN_UNDEF;
###########################################################################
# (@)METHOD:GetItemRect(index,[code=LVIR_BOUNDS])
# Retrieves the bounding rectangle for all or part of an item in the current view,
# in client co-ordinates.
void
GetItemRect(handle,index,code=LVIR_BOUNDS)
HWND handle
int index
int code
PREINIT:
RECT rect;
PPCODE:
if (ListView_GetItemRect(handle,index,&rect,code) == TRUE) {
EXTEND(SP, 4);
XST_mIV(0, rect.left);
XST_mIV(1, rect.top);
XST_mIV(2, rect.right);
XST_mIV(3, rect.bottom);
XSRETURN(4);
}
else
XSRETURN_UNDEF;
###########################################################################
# (@)METHOD:GetItemSpacing([flag=FALSE])
# Determines the spacing between items in a ListView. Flag is true to return the
# item spacing for the small icon view, and false to return the icon spacing for large icon view.
DWORD
GetItemSpacing(handle,flag=FALSE)
HWND handle
BOOL flag
CODE:
RETVAL = ListView_GetItemSpacing(handle,flag);
OUTPUT:
RETVAL
###########################################################################
# (@)METHOD:GetItemState(index,mask)
# Determines the spacing between items in a ListView. Index is the listview item for which
# to retrieve information. mask is a combination of the fllowing flags:
# LVIS_CUT The item is marked for a cut-and-paste operation.
# LVIS_DROPHILITED The item is highlighted as a drag-and-drop target.
# LVIS_FOCUSED The item has the focus, so it is surrounded by a standard
# focus rectangle. Although more than one item may be selected,
# only one item can have the focus.
# LVIS_SELECTED The item is selected. The appearance of a selected item depends
# on whether it has the focus and also on the system colors used for selection.
# LVIS_OVERLAYMASK Use this mask to retrieve the item's overlay image index.
# LVIS_STATEIMAGEMASK Use this mask to retrieve the item's state image index.
# The only valid its in the response are those bits that correspond to bits set in mask.
UINT
GetItemState(handle,index,mask)
HWND handle
int index
UINT mask
CODE:
RETVAL = ListView_GetItemState(handle, index, mask);
OUTPUT:
RETVAL
###########################################################################
# (@)METHOD:GetItemText(index,[subitem=0])
# Retrieves the text of a ListView item or subitem
void
GetItemText(handle,index,subitem=0)
HWND handle
int index
int subitem
PREINIT :
char Text[1024];
PPCODE:
ZeroMemory(Text, 1024);
ListView_GetItemText(handle, index, subitem, Text, 1024);
EXTEND(SP, 1);
XST_mPV(0, Text);
XSRETURN(1);
###########################################################################
# (@)METHOD:GetNextItem(index,[mask=LVNI_ALL])
# Searches for a list view item that has the specified properties and bears
# the specified relationship to a specified item.
UINT
GetNextItem(handle,index,mask=LVNI_ALL)
HWND handle
int index
UINT mask
CODE:
RETVAL = ListView_GetNextItem(handle, index, mask);
OUTPUT:
RETVAL
###########################################################################
# (@)METHOD:GetNumberOfWorkAreas()
# Retrieves the number of working areas in a ListView.
UINT
GetNumberOfWorkAreas(handle,index,mask=LVNI_ALL)
HWND handle
int index
PREINIT:
UINT value;
CODE:
ListView_GetNumberOfWorkAreas(handle, &value);
RETVAL = value;
OUTPUT:
RETVAL
###########################################################################
( run in 0.417 second using v1.01-cache-2.11-cpan-39bf76dae61 )