Is there a message for ListView equivalent to LB_SETTOPINDEX for ListBox?
The following is in Load event;
With lvwOutput
hwndLVOutput = .hwnd
.ColumnHeaders.Add , , "Some Title", .Width, lvwColumnLeft
' .View = lvwList
.View = lvwReport
End With
Note that the header is not getting displayed. I do not know why.
Is there a ListView equivalent for the following?
lngLB_GetCount = SendMessage(hwndLst, LB_GETCOUNT, ByVal 0&, ByVal 0&)
SendMessage hwndLst, LB_SETTOPINDEX, lngLB_GetCount - 1, ByVal 0&
Howard Kaikow - 20 May 2008 07:54 GMT
Problem solved.
I can use the EnsureVisible method on the item.
But, the display is poor as the listview does not update until prog is done.
So I have to insert a Referesh method for the ListView after each
EnsureVisible.