Window 1 causing text on window 2
What I would like to do is this:
When a button is pushed on window 2 have text appear on window 1 (my main window). Both windows use a different WndProc.
I'm thinking off the following:
1) Process the button push under WM_COMMAND on window 2's WndProc. (done)
2) Use SendMessage to send a message to window 1's WndProc.
3) Process and return.
What I'm not sure of is how to code the SendMessage. Can you define your own WM_BLAHBLAH message?
Oh reason I want to use SendMessage over PostMessage is that I need to wait for the results of the other wndproc before I can continue.
Anyone able to point me in the right direction?