请问我现在有两个ListView,其中的内容一一对应,现在要求其中一个拉动垂直滚动条时
另外一个也同步地将滚动条定位到相应的位置,请问具体怎样实现.

解决方案 »

  1.   

    下面的函数可能对你有用:{ 让指定的ListView向上滚动一行,第二、三个参数中的其它取值
      可以查Delph中的Windows Api帮助。 }
    SendMessage(ListView.Handle, { HWND of the Memo Control } 
                WM_VSCROLL, { Windows Message } 
                SB_PAGEUP, { Scroll Command } 
                0); { Not Used }

    ListView.Perform(WM_VSCROLL, { Windows Message } 
                SB_LINEUP, { Scroll Command } 
                0); { Not Used }