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.............
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.............
Zcoder,
DestroyWindow should definitely do the job.
DestroyWindow should definitely do the job.
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.
and make sure, that hListView is the handle, not the ID.
To transform the ID to HANDLE, try GetDlgItem.
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....
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....