Microsoft KB Archive/66330

INF:Scrolling 2 PM List Boxes in 1 Dialog Box at the Same Time PSS ID Number: Q66330 Article last modified on 09-09-1991 PSS database name: P_PresMan

1.10 1.21

OS/2

Summary:

The following steps describe how to have one list box in a dialog box mimic the scrolling of another list box in the same dialog box:


 * 1) Subclass the first list box to mimic the second list box.
 * 2) When the WM_HSCROLL message is received, send it to the first list box.

Please note that the scroll ranges should be the same for both list boxes. For example, if one list box can scroll and the other list box cannot, due to the length of the list in the other box, the scroll should be ignored.

In the Software/Data Library is a file named SCRLB2 that contains a sample program demonstrating this functionality. SCRLB2 can be found in the Software/Data Library by searching on the word SCRLB2, the Q number of this article, or S12783. SCRLB2 was archived using the PKware file-compression utility.

Copyright Microsoft Corporation 1991.