System tray processing method and device based on instant message

The invention discloses a system tray processing method and device based on instant message. A timer is started when a system is started. When no friend's message occurs, switching with two identical system pictures is performed all the time to display static system tray icons. When a friend's message is received, the two system pictures in the switching are replaced by the friend's head icon and a transparent picture, and the switching of the friend's head icon and the transparent picture replaces the original switching, and the system tray displays as a flashing friend's icon. When a user clicks the system tray, the friend's head icon and the transparent picture are replaced by the two system pictures again to display static system tray icons. The timer is on during the whole process, and is off until the system is shut down. By the system tray processing method and device, the problem that frequency starting and stopping the timer causes high internal memory occupation and complex logic code is solved, and accordingly operation reliability of the system is improved.