How can an ActiveX control, created for a CComCompositeControl as part of a resource (.rc) dialog definition, gain reference to the container of the CComCompositeControl?
The ActiveX control created in this way is actually contained in a CAxHostWindow instance per this article. I have observed this to be true and have encountered the problem that the CAxHostWindow's implementation of IOleClientSite::GetContainer() actually returns the CAxHostWindow implementation of IContainer. So, it is offering itself as its own container. Is there a good way to work around this? Is there something I'm missing?
I had thought it would be as simple as walking parent to parent.