I'm trying to understand how message routing works in MFC, and I have some questions regarding it. Imagine a control that extends CWnd. My first question is: are all messages in that control passed on to the parent control?
I know that doesn't happen with CStatic which only passes specific messages when you set the SS_NOTIFY style. What I'm trying to understand if that's specific to CStatic or happens with all the controls. Specifically I'm trying to make a control that has several child controls with the sole purpose of defining their layout. I wanted all messages of the child controls to be handled by the parent of this intermmediate control. For example if this layout control has a child button, when the button is clicked the message would be sent to the parent to be treated.
However I don't intend to treat all messages manually. So, if I extend my control from CWnd instead of CStatic will the message be passed on? Is FORWARD_NOTIFICATIONS() available in MFC? If not I'd rather extend my intermmediate classes to handle messages as needed. Any other solutions you know off?