Does anyone know how to delete a listview from
my window? I have used these and they don't work.

invoke DestroyWindow,hListView
or
invoke SendMessage,hListView,WM_CLOSE,0,0
or
invoke CloseHandle,hListView

none of those work. There has to be away....

Thanks in advance...

Zcoder.............
Posted on 2001-08-19 04:12:18 by Zcoder
Zcoder,

DestroyWindow should definitely do the job.
Posted on 2001-08-19 04:52:15 by Tola
try with GetLastError to see what type of error do u get ?

and make sure, that hListView is the handle, not the ID.

To transform the ID to HANDLE, try GetDlgItem.
Posted on 2001-08-19 19:54:48 by Sabeel
I found that Destroywindow will work,
and I should also let others know that if you
make a listview while in a thread it can not be
deleted by another prossess, you will have to
delete it with the prossess that created it.

I fixed the problem, and it now works.

Thanks Zcoder....
Posted on 2001-08-22 15:16:59 by Zcoder