In the old tutorial of mine there are a few examples of using SendMessage.