Hello,

Thanks a lot for your help. I really appreciate it.

Now I may be complicating myself but I'm still a bit confused. Also I may not being explaining myself correctly.
I made a picture where I state my problem:

explanation.jpg

Now where I'm confused:
When hButton is clicked, hLabel should be changed.
I get a bit confused on which messages go where and how to know the parents etc.

So normally hwndControls being the parent of hButton, should be the one receiving the message from hButton right?
Now hwndControls doesn't know that hwndContent exists! so it can't send it a message.
What I also don't know is if it is good practice to pass all the handles by parameter or declare them as global so they are visible. I don't know if you see where I get confused?
And I don't think that parent of parent of parent of child is a good practice is it?

Maybe you could post some more specific example or maybe some simple code for this problem so I can actually see what I'm missing to understand, If you wouldn't mind.

This example is just an example I've created so I can understand how to handle that kind of problem. Understanding this would help me understand how to do it for all other contexts.

Hope I am not asking for too much. I really just want to learn it the right way on the first run so I use good practices from the beginning on.


Thank you so much!!!