I recomment you read about
messaging[
^] in MSDN for starters, Reading about
SendMessage[
^] and
PostMessage[
^] is also a good idea, learning the difference between the two.
Window Procedures[
^] is also a topic you might require.
I hope these can help you get started.