Microsoft KB Archive/67744

PRPM9012016: LM_SETITEMTEXT and Scroll Bar Activation Problem PSS ID Number: Q67744 Article last modified on 07-01-1991 PSS database name: P_PresMan

1.21

OS/2

Summary:

PROBLEM ID: PM9012016

SYMPTOMS A list box with a horizontal scroll bar should automatically enable and disable the scroll bar to reflect the length of the longest item in the list box. If the LM_SETITEMTEXT message is used to change the text of a specific item, and the new text exceeds the length visible with the list box, the scroll bar will not be activated.

RESOLUTION/STATUS To workaround this problem, send a LM_DELETEITEM message followed by a LM_INSERTITEM message in place of the LM_SETITEMTEXT message. This message sequence correctly activates the horizontal scroll bar.

Microsoft has confirmed this to be a problem in Presentation Manager (PM) version 1.21. This problem was corrected in PM version 1.3.

Copyright Microsoft Corporation 1991.