A composite control calling another composite control in web browser 
Author Message
 A composite control calling another composite control in web browser

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



Sun, 20 Feb 2005 12:05:52 GMT  
 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



Sun, 20 Feb 2005 22:44:17 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Composite control hosted by a composite control.

2. Initialize a Full Control in a browser from a Composite Control

3. Using Rich Edit Control or ip address control in a composite control

4. ATL composite control problem with IESample browser

5. Composite Control - why GetControlInfo is not called?

6. ATL Composite Control - GetControlInfo not called!

7. InPlaceActivate is not getting called for a Composite control (for a MFC client)

8. How to get PreTranslateAccelerator called in composite control

9. Get an Item.ItemIndex of controls other than supporting CommandName inside composite controls

10. ATL Full Control - mouse activation problems in Composite Control

11. How to enumerate every control in a composite Control

12. ATL Full Control - mouse activation problems in Composite Control

 

 
Powered by phpBB® Forum Software