
A composite control calling another composite control in web browser
1) If you are asking how two controls hosted on the same page can
discover each other, do the following. Call IOleClientSite::GetContainer
to obtain IOleContainer interface (you have the site pointer in
CComControl::m_spClientSite member). Use IOleContainer::EnumObjects to
enumerate all controls on a page. Query each for some agreed upon
interface, to figure out which of them is the one you are interested in.
2) I don't understand the question. Do you have problems with anything
in particular?
--
With best wishes,
Igor Tandetnik
"For every complex problem, there is a solution that is simple, neat,
and wrong." H.L. Mencken
Quote:
> Hello,
> 1) I would like to ask whether it is possible to call a composite
control
> from another composite control in a web browser. If it is possible,
how can
> i call it?
> I have tried to call a dialog from a composite control and it is
successful
> but it is not successful to call composite control from another
composite
> control.
> 2) The composite control is based on template of dialog. Is anything
the
> composite control can do but dialog cannot do ? I mean any difference
> between them ?
> Regards,
> David