Owner Draw Listbox problem

Hi All,
I have an owner drawn list box. i have disabled its scrollbars and im drawing a custom one. since there is no scrollbar, when im calling GetScrollPos(), it is returning 0 always.
how i can solve this issue
regards,
sarath



Answer this question

Owner Draw Listbox problem

  • BJBear

    Usually the system sends SBM_GETPOS windows with standard scrollbar when GetScrollPos is called.

    So you can overwrite the behaviour by handling this message.



  • Shaka

    Can't you override GetScrollPos and return the position of your custom scroll bar



  • Uriparan

    how we calculate the current scroll position


  • Ed Jarrett

    This is your problem.

    If you have a custom scroll bar you should know were your scroll position is!



  • Owner Draw Listbox problem