Patent ID: 8924861

Claim:
A method for displaying an Instant Messaging (IM) message, comprising: when a size of a picture to be processed is greater than a size of a container, setting a display size of the picture to be processed to be not greater than the size of the container; drawing the picture to be processed according to the set display size; setting an identification mark for visible content of the Nth line of a message in the container, wherein N is a positive integer, and the identification mark comprises a predetermined mark, and a set of sequence numbers of one or more characters in the message, the one or more characters being selected from the visible content of the Nth line of the message, wherein the predetermined mark is visually displayed with the message and the set of sequence numbers of the one or more characters in the message is not visually displayed with the message; after the container size is changed to obtain a second changed container, searching for a line number of the identification mark in the second changed container; determining whether the line number of the identification mark in the second changed container is the Nth line in the second changed container; and when the line number of the identification mark in the second changed container is not the Nth line in the second changed container, moving a display area of the second changed container without scrolling, and assigning a line where the identification mark locates as the Nth line of the display area of the second changed container.