Lock for painting and handling messages