Msg must stay...
-
I have this situation: I have a CDialog and in it some ctrl's. I Enumerate all the ctrl's in it to let another window take over (a CTabCtrl derived class) the ctrl's for itself - working as a delegate for the "real" other window (called Wr here) - the dialog. This I do in order to let pages of the tab-ctrl work with the ctrl-sets to mimic that the dialog is embedded into the tab. So on tab shown I go SetWindowPos(...) on all the child's etc. I use ::SetParent(hWndNewParent, hWndChild) for taking over the ownership - all works just fine! Now my problem: How do I STILL let the messages from all kinds of ctrls go to the Wr (dialogs in this case and later on CView's)? Say I press a btn. on tab 0 - now the BN_CLICKED generated as a result of this press go to hWndNewParent (the CTabCtrl derived) and I want to route it to the Wr. This wish is because we already have all msg-handlers installed in lots of Wr's and would like to have'm stay their - otherwise it's mixed into a CTabCtrl derived and - well; no good! My sugestion is still to catch "all interesting" messages on the new object and then go in the direction of (pseudo): pTabDlg->PostMessage(msg)... So in other words my CTabCtrl derived class is a delegate only. Can I do that? I can use any help I can possible get – thanks in advance! Regards, Michael Mogensen, mm it-consult dk. ><((((º> ·.¸¸.· ><((((º> ·.¸¸.· ><((((º>