V
Valerie Hough
I have a list box that uses the horizontal scroll bar. I would like to be
able to "scroll" my headings at the top of the list box when the list box is
scrolled.
Spy reveals that this is not a real scroll bar (hwnd always null), so I
can't see how to find out when, and how much, the list box is scrolled.
If I create my own scroll bar, I have trouble keeping the display smooth.
The best I can seem to do is to intercept and ignore the WM_ERASEBGND
message, but the effect is still not nearly as smooth as using the
ListBox.HorizontalScrollBar property. In addition, when I create a
HScrollBar object and try to anchor it to the bottom of the list box, it
moves when I vertically scroll the list box. I am reduced to repositioning
it every time I receive a vertical scroll message.
Obviously I would prefer to use HorizontalScrollBar, but I would settle for
a decent looking scroll effect using HScrollBar.
Can anyone help?
Thanks in advance,
Valerie Hough
able to "scroll" my headings at the top of the list box when the list box is
scrolled.
Spy reveals that this is not a real scroll bar (hwnd always null), so I
can't see how to find out when, and how much, the list box is scrolled.
If I create my own scroll bar, I have trouble keeping the display smooth.
The best I can seem to do is to intercept and ignore the WM_ERASEBGND
message, but the effect is still not nearly as smooth as using the
ListBox.HorizontalScrollBar property. In addition, when I create a
HScrollBar object and try to anchor it to the bottom of the list box, it
moves when I vertically scroll the list box. I am reduced to repositioning
it every time I receive a vertical scroll message.
Obviously I would prefer to use HorizontalScrollBar, but I would settle for
a decent looking scroll effect using HScrollBar.
Can anyone help?
Thanks in advance,
Valerie Hough