03-21-2009, 06:27 PM
will be faster if you call share(hwnd) not in for.
Macro
Macro
int hwnd=win("Program Manager" "Progman")
int hlv=id(1 "Program Manager")
int n=SendMessage(hlv LVM_GETITEMCOUNT 0 0)
ARRAY(POINT) p.create(n)
lock _share
POINT& pqm=share
POINT& pe=share(hwnd)
for int'i 0 n
,SendMessage(hlv LVM_GETITEMPOSITION i &pe)
,p[i]=pqm
lock- _share
for i 0 p.len
,out "%i %i" p[i].x p[i].y
,