I've created an MFC ActiveX control (COleControl). This control is
embedded within a Windows Forms Application (C#). Is there a way to
access methods or attributes of the form hosting the ActiveX control
from the control?
If the control is hosted within the IE I was able to access it with:
...
LPOLECLIENTSITE pClientSite = this->GetClientSite();
...
pClientSite->GetContainer( &pContainer );
...
pContainer->QueryInterface( IID_IHTMLDocument2,(void**) &pDoc );
But I'm totally puzzled which interface to use when the control is
hosting in a form.
Thanks in advance
cheers
Renᅵ
"R.Berndt" <r.be...@cgv.tugraz.at> wrote in message
news:eZta01yq...@TK2MSFTNGP04.phx.gbl...