Hi,

I need your help with the following problem, please:

I have a ATL composite control which hosts an ActiveX on its dialog. Now I want the composite control (the outer) to aggregate the ActiveX on the dialog (the inner object).

Well, aggregation is quite easy for a simple object. Every example suggests to create the inner object in FinalConstruct. But for a composite control the inner object is created in OnInitDialog which is far to late for FinalConstruct.
On the other hand it is not possible to create the inner ActiveX in FinalConstruct because there exists no hosting window at this time.

Any ideas?

Thanks,
Alpha137