views:

216

answers:

1

I'm trying to wrap my head around creating a toolbar (a tool band in a rebar) in MFC for Internet Explorer using COM.

Is it possible to get the address of the currently viewed page (i.e., http://stackoverflow.com/questions/ask in my case :-) ) from the toolbar?

If so, what should I look in to?

Thanks!

+1  A: 

You can use the IWebBrowser2::get_LocationURL method.

Magnus Johansson