Control webbrowser ActiveX control in composit ActiveX control 
Author Message
 Control webbrowser ActiveX control in composit ActiveX control

Question: I created a simple atl based ActiveX control project and added a
composite control.  The resource view
presented me an empty space on which to add controls.  I right click and
select "insert ActiveX control".  I select the
Microsoft Web Browser control.  Compiling and using testing using ActiveX
Control Test Container are both
successful.  Now I would like to navigate to a URL programmatically.  I've
seen the Navigate method when using this control in VB.  But I'm not sure
how to invoke/call this method in this context.  There doesn't seem to be a
class wrapper for this control that provides all the methods available.  I'm
probably going to kick myself when I hear the answer but as of now, I'm
stuck.  Any help appreciated.

gkelly



Sun, 06 Mar 2005 05:30:56 GMT  
 Control webbrowser ActiveX control in composit ActiveX control
CComPtr<IUnknown> spUnk;
GetDlgControl(IDC_MYWB, &spUnk);
CComQIPtr<IWebBrowser2> spWB = spUnk;
spWB->Navigate(...);

--
With best wishes,
    Igor Tandetnik

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


Quote:
> Question: I created a simple atl based ActiveX control project and
added a
> composite control.  The resource view
> presented me an empty space on which to add controls.  I right click
and
> select "insert ActiveX control".  I select the
> Microsoft Web Browser control.  Compiling and using testing using
ActiveX
> Control Test Container are both
> successful.  Now I would like to navigate to a URL programmatically.
I've
> seen the Navigate method when using this control in VB.  But I'm not
sure
> how to invoke/call this method in this context.  There doesn't seem to
be a
> class wrapper for this control that provides all the methods
available.  I'm
> probably going to kick myself when I hear the answer but as of now,
I'm
> stuck.  Any help appreciated.

> gkelly



Sun, 06 Mar 2005 06:14:01 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. ActiveX control inside another activex control

2. Need help with ActiveX control containing other activex controls

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

4. ActiveX control inside another ActiveX control

5. Need help with ActiveX control containing other activex controls

6. ActiveX control in an ActiveX control

7. Modify Activex Control Properties from other Activex Control.

8. ActiveX-control inside ActiveX-control

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

10. Windowless ActiveX control/ Transparent ActiveX control

11. Newbie?ActiveX Control in ActiveX Control

12. Modify Activex Control Properties from other Activex Control.

 

 
Powered by phpBB® Forum Software