You can do this overriding OnCommand() and send a WM_COMMAND messages to the parent in response, such as
CBetterGroupbox::OnCommand(WPARAM wParam, LPARAM lParam)
{
CWnd *pParent = GetParent();
ASSERT_VALID(pParent);
pParent->SendMessage(WM_COMMAND, wParam, lParam);
}
This should take care of any control command messages, but it won't help with common controls that use WM_NOTIFY messages. However, a better way would be to call SetOwner() on the child windows to set their owner to the dialog box. This will cause all the control messages to be sent to the dialog box instead of the group box. I'm not sure if this works for common controls, though. I think it does, but perhaps you can test it :) Hope this helps Ryan Being little and getting pushed around by big guys all my life I guess I compensate by pushing electrons and holes around. What a bully I am, but I do enjoy making subatomic particles hop at my bidding - Roger Wright (2nd April 2003, The Lounge)
Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late - John Nichol "Point Of Impact"