How can i add window message?

Thanks, .
It was very useful for me.