Re: 2 CListCtrl with one hor. scrollbar
On Mon, 11 Sep 2006 15:50:42 +0200, Johann Obermayr
<Johann.Obermayr@sigmatek.at> wrote:
nothing will work.
scrollbar position is changed, but not the client area.
Let's start over. My first suggestion to use WM_VSCROLL and/or WM_HSCROLL
was correct. Sending this message is all you need to do. I know, because I
wrote a program called "Wheeler" that addresses some deficiencies in
Intellipoint's handling of the mouse wheel. Among other things, Wheeler can
translate wheel messages to scrollbar messages, and to this, all it does is
post WM_[HV]SCROLL messages to the target window. It works, even with
listview controls. See also the MS documentation here:
http://windowssdk.msdn.microsoft.com/en-us/library/ms651269.aspx#creating_keyboard_inface
So there must be something awry with your attempt to forward this message.
Unfortunately, reviewing the code you posted earlier, I don't see the
problem. In cases like this, I try to simplify things. For example, I might
add a button to the dialog and hook it up to a handler that constructs a
scrollbar message from scratch and sends it to the target window; when I
get that working, I apply it to my real problem. Oh, and to add yet another
scrolling method to the ones I mentioned earlier, you might also need to
account for the LVM_SCROLL message.
--
Doug Harrison
Visual C++ MVP