Friends,
I've a Win32 handle of a window of type SysListView32. I want to attach this Window handle to .NET managed object of type ListView.
Back during the days of MFC/C++ this can be done something like:
CListView *pListView = (CListView *)CWnd::FromHandle(hListView);
int itemCount = pListView->GetItemCount();
ListView object to perform operations on ListViewControl such as getting number of items, clearing all items e.t.c.
Attaching unmanaged window handle with managed object
Kolf