ActiveX control inside another ActiveX control 
Author Message
 ActiveX control inside another ActiveX control

(Sorry first post no Subject :-(  )

Hi,

For sometime now I have been struggling with using COM in Visual C++.

I want to use COM containment, as that seems the easiest, to contain an

activex control inside another activex control.. But I can't find ANY

examples of COM containment using ActiveX controls with a GUI! I have found

examples of COM containment command line (which I can do), I have found

examples of creating an ActiveX control from scratch (which I can do), but I

have found no examples of containing an ActiveX control inside another! Can

anyone help out there? The closest I have got is creating a Composite

control and inserting the inner activex control onto the dialog in the

resource editor, but this seems a bit rubbish.

Thanks

Matt



Fri, 08 Jul 2005 17:04:55 GMT  
 ActiveX control inside another ActiveX control
Hi Matt,

The simplest solution is to use ATL composite control. VC 6 has a wizard
for creating such control. Unfortunately, doing so in MFC is not easy. A
workaround is to use ATL's AtlAxWin in MFC's ActiveX control. Please check
the article below for a sample:

192560 HOWTO: Add ATL Control Containment Support to Any Window
http://support.microsoft.com/?id=192560

Also, ActiveX control and container is built on the OLE technology. You may
want to check the following article for a general guideline:

137555 OLE Controls and Control Containers Guidelines
http://support.microsoft.com/?id=137555

Hope this helps.

Best Regards,
Leo Chen

This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------

| Newsgroups: microsoft.public.vc.mfc
| Subject: ActiveX control inside another ActiveX control
| Date: Mon, 20 Jan 2003 16:04:55 -0000
| Organization: Thales
| Lines: 32

| NNTP-Posting-Host: 172.26.81.62
| X-Trace: rdel.co.uk 1043078699 16464 172.26.81.62 (20 Jan 2003 16:04:59
GMT)

| NNTP-Posting-Date: 20 Jan 2003 16:04:59 GMT
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 5.50.4807.1700
| X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700
| Path:
cpmsftngxa06!cpmsftngxa08!cppssbbsa01.microsoft.com!news-out.cwix.com!newsfe
ed.cwix.com!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.icl.net!newsfeed.f
jserv.net!lnewspeer00.lnd.ops.eu.uu.net!emea.uu.net!news!not-for-mail
| Xref: cpmsftngxa06 microsoft.public.vc.mfc:361408
| X-Tomcat-NG: microsoft.public.vc.mfc
|
| (Sorry first post no Subject :-(  )
|
|
|
| Hi,
|
| For sometime now I have been struggling with using COM in visual C++.
|
| I want to use COM containment, as that seems the easiest, to contain an
|
| activex control inside another activex control.. But I can't find ANY
|
| examples of COM containment using ActiveX controls with a GUI! I have
found
|
| examples of COM containment command line (which I can do), I have found
|
| examples of creating an ActiveX control from scratch (which I can do),
but I
|
| have found no examples of containing an ActiveX control inside another!
Can
|
| anyone help out there? The closest I have got is creating a Composite
|
| control and inserting the inner activex control onto the dialog in the
|
| resource editor, but this seems a bit rubbish.
|
| Thanks
|
| Matt
|
|
|
|



Sun, 10 Jul 2005 08:04:12 GMT  
 ActiveX control inside another ActiveX control
Thanks Leo,

I have now got my ActiveX control almost working. I just need to get the
mouse down event sorted.

Thanks

Matt



Quote:
> Hi Matt,

> The simplest solution is to use ATL composite control. VC 6 has a wizard
> for creating such control. Unfortunately, doing so in MFC is not easy. A
> workaround is to use ATL's AtlAxWin in MFC's ActiveX control. Please check
> the article below for a sample:

> 192560 HOWTO: Add ATL Control Containment Support to Any Window
> http://support.microsoft.com/?id=192560

> Also, ActiveX control and container is built on the OLE technology. You
may
> want to check the following article for a general guideline:

> 137555 OLE Controls and Control Containers Guidelines
> http://support.microsoft.com/?id=137555

> Hope this helps.

> Best Regards,
> Leo Chen

> This posting is provided "AS IS" with no warranties, and confers no
rights.

> --------------------

> | Newsgroups: microsoft.public.vc.mfc
> | Subject: ActiveX control inside another ActiveX control
> | Date: Mon, 20 Jan 2003 16:04:55 -0000
> | Organization: Thales
> | Lines: 32

> | NNTP-Posting-Host: 172.26.81.62
> | X-Trace: rdel.co.uk 1043078699 16464 172.26.81.62 (20 Jan 2003 16:04:59
> GMT)

> | NNTP-Posting-Date: 20 Jan 2003 16:04:59 GMT
> | X-Priority: 3
> | X-MSMail-Priority: Normal
> | X-Newsreader: Microsoft Outlook Express 5.50.4807.1700
> | X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700
> | Path:

cpmsftngxa06!cpmsftngxa08!cppssbbsa01.microsoft.com!news-out.cwix.com!newsfe
ed.cwix.com!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.icl.net!newsfeed.f

- Show quoted text -

Quote:
> jserv.net!lnewspeer00.lnd.ops.eu.uu.net!emea.uu.net!news!not-for-mail
> | Xref: cpmsftngxa06 microsoft.public.vc.mfc:361408
> | X-Tomcat-NG: microsoft.public.vc.mfc
> |
> | (Sorry first post no Subject :-(  )
> |
> |
> |
> | Hi,
> |
> | For sometime now I have been struggling with using COM in visual C++.
> |
> | I want to use COM containment, as that seems the easiest, to contain an
> |
> | activex control inside another activex control.. But I can't find ANY
> |
> | examples of COM containment using ActiveX controls with a GUI! I have
> found
> |
> | examples of COM containment command line (which I can do), I have found
> |
> | examples of creating an ActiveX control from scratch (which I can do),
> but I
> |
> | have found no examples of containing an ActiveX control inside another!
> Can
> |
> | anyone help out there? The closest I have got is creating a Composite
> |
> | control and inserting the inner activex control onto the dialog in the
> |
> | resource editor, but this seems a bit rubbish.
> |
> | Thanks
> |
> | Matt
> |
> |
> |
> |



Sun, 10 Jul 2005 16:04:51 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. ActiveX control inside another activex control

2. ActiveX-control inside ActiveX-control

3. Control webbrowser ActiveX control in composit ActiveX control

4. Help - Problems with Drawing an MFC ActiveX control inside on ATL compsoite control

5. Problems with Drawing an MFC ActiveX control inside on ATL compsoite control

6. Tooltips on controls (buttons, widgets etc) inside an ActiveX Control

7. Need help with ActiveX control containing other activex controls

8. ATL ActiveX Control hosting code fails to initialize ActiveX Controls on Win9x

9. Need help with ActiveX control containing other activex controls

10. ActiveX control in an ActiveX control

11. Modify Activex Control Properties from other Activex Control.

12. Custom ActiveX control built on a Standard (comctl32.ocx) ActiveX Control

 

 
Powered by phpBB® Forum Software