Microsoft KB Archive/66160

PRPM9012009:MLM_QUERYFIRSTCHAR Message Returns Incorrect Value PSS ID Number: Q66160 Article last modified on 06-25-1991 PSS database name: P_PresMan

1.21 1.30

OS/2

Summary:

PROBLEM ID: PM9012009

SYMPTOMS The MLM_QUERYFIRSTCHAR message returns an insertion point of one less than the value in the MLM_SETFIRSTCHAR message. In addition, the same value is returned for BOTH the first and second characters on a line.

For example, assume the first line in your MLE (multiline edit) control is “ABCDEFGH”. Listed below are the insertion points returned, assuming the corresponding letter is the first visible character in the upper-left portion of the screen:

0 0 1 2 3 4 5 6    VALUES RETURNED BY MLM_QUERYFIRSTCHAR A B C D E F G H 0 1 2 3 4 5 6 7     VALUES TO USE FOR MLM_SETFIRSTCHAR STATUS Microsoft has confirmed this to be a problem in Presentation Manager versions 1.21 and 1.3. We are researching this problem and will post new information here as it becomes available.

Copyright Microsoft Corporation 1991.