I have a thread which sends user defined messages to another window.

How can I get it to send a text string?

For example, the window which receives a certain message has a static text control which I would like to update.

At the moment I have derived a series of CONSTANTS and sent those. Then the message handler sets the text according to which CONSTANT was received.

There must be a more flexible approach.

I hope someone can help.