How to enumerate every control in a composite Control 
Author Message
 How to enumerate every control in a composite Control

Dear My Friends:
  I am developing  a Composite ActiveX Control in ATL,But I don't know to
enumerate every contrl in the Composite Control.
  If you know ,Please Tell me to compose a Email to me.
    Thanks In advance!
                   2003-4-11 18:07
                   SoftwareX


Tue, 27 Sep 2005 18:07:44 GMT  
 How to enumerate every control in a composite Control
What eaxctly are you trying to do? You want the composite control to
enumerate all the controls it hosts? Well, you should know up front what
controls it hosts - you have placed them in the dialog editor. If you
want to do it programmatically for some reason, enumerate all child
windows with EnumChildWindows, call AtlAxGetControl on each.

Or do you want to support the ability for a hosted control to enumerate
all sibling controls? In this case you need to implement IOleContainer,
and pass your implementation of it via IObjectWithSite::SetSite (ATL
hosting window implements IObjectWithSite, you get to it with
AtlAxGetHost) to each host support window.
--
With best wishes,
    Igor Tandetnik

"For every complex problem, there is a solution that is simple, neat,
and wrong." H.L. Mencken


Quote:
>   I am developing  a Composite ActiveX Control in ATL,But I don't know
to
> enumerate every contrl in the Composite Control.
>   If you know ,Please Tell me to compose a Email to me.



Wed, 28 Sep 2005 00:10:14 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. A composite control calling another composite control in web browser

2. Composite control hosted by a composite control.

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

4. How to enumerate controls placed on a Control Container

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

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

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

8. Problem with Composite Control containing a Full Control

9. Using ActiveX controls in ATL Composite control

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

11. Message Handling - Controls - ATL Composite Controls

12. Insert lite control in Composite Control

 

 
Powered by phpBB® Forum Software