How i can extend the layout file

i would like to extend the message elgg style founded in the layout file i know how to overide it by i can't extend it please get me help

great thx