ListView (captured the scroll but lost everything else) Need other events.

T

Tim

I have successfully captured the scroll event of the listview control
by creating a class that inherits the list view control then
overriding the wndproc procedure.

I have two questions though.

First I lose all other events for the listview control obviously
because I overwrote the wndproc procedure. Really the only other event
I am using right now is the selected index changed event. I was
looking for a definition of what the wndproc procedure was before I
overrode it and can't find it that anywhere. Any ideas?

Second does anyone know if there is a way to capture the amount that
the listview control was scrolled?

Thanks!
 
H

Herfried K. Wagner [MVP]

Tim said:
I have successfully captured the scroll event of the listview control
by creating a class that inherits the list view control then
overriding the wndproc procedure.

I have two questions though.

First I lose all other events for the listview control obviously
because I overwrote the wndproc procedure.

Maybe you forgot to add a call to the base class' 'WndProc' inside your
'WndProc':

\\\
MyBase.WndProc(m)
///
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top