i want to receive the messages when the scrollbar of a listbox was scrolled down or up. any body would like to help? thanks a lot.
Posted on 2004-12-30 20:19:33 by zhihui
I think you have to use an Hook function...

Try to have a look to one of a old folder of me...(Visual Basic)...


and folder is here ------->


I don't remember but I know one can control ScrollBar...

Have a good time for this Happy New Year


"Don't drink too much...some links are better..."....
Posted on 2004-12-31 05:39:28 by gerard
From PlatformSDK:

The WM_VSCROLL message is sent to a window when a scroll event occurs in the window's standard vertical scroll bar. This message is also sent to the owner of a vertical scroll bar control when a scroll event occurs in the control.

A window receives this message through its WindowProc function.
Posted on 2004-12-31 09:27:10 by anon
Posted on 2005-01-02 20:29:25 by P2M

After feasts of end of year...

About ScrollBars...

About Hooks...

About LB_SETTOPINDEX it is for ListBox..

All depends of what one wants to do with one's ScrollBar..

Normally with EditBox and ListBox displacements of ScrollBar are all made...

If one wants to use a picture one has to use API for ScrollBar... http://msdn.microsoft.com/library/en-us/shellcc/platform/commctls/scrollbars/scrollbarreference/scrollbarfunctions/enablescrollbar.asp..

I hope you will find solutions in these Links...

Posted on 2005-01-02 23:45:58 by gerard
thanks every body! i will have a try.
happy new year. happy new beginning.

here is my situation:

i want to write a tiny dictionary program, for personal use. i used a list box in the left to display all the

words enry. there are more than 16000 words.

i used SQL search sentences to find the specific words, such as
"select WordColumn from mydictionary where WordColumn like '%a%'"
which may have a large number of results. if i reset the list box and add all the results to the list box at

one time, it would take a few seconds, at the mean time, the list box will blink madly.
so i want to display a small number of them in the list box, say, 100 each time. when the scroll bar of the

list box reached the bottom, it is time to add another 100 entries to the list box. i hope that can speed up

the displaying. i hope my idea works. so i need the message send by the scroll bar of the list box.
Posted on 2005-01-04 00:01:29 by zhihui