Dectecting ListView keypress or click

Hi, I'm trying to detect when the user press some key or click over the LV i was trying with this:

SetWindowLongPtr(hwndlv, GWLP_WNDPROC, (LONG_PTR)&lvproc);

But when i do that the listview dissapears. Any ideas?

EDIT:

It doesn't disspear it just do nothing stays in blank.
Last edited on
Sorry, i just solved it adding in the new procedure this:

 
return CallWindowProc (procOriginal,hwnd, message, wParam, lParam);


Where procOriginal is:
 
procOriginal = SetWindowLongPtr(hwndlv, GWLP_WNDPROC, (LONG_PTR)lvproc);
Topic archived. No new replies allowed.