Get address of current page in Internet Explorer from toolbar
-
02-07-2019 - |
Question
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., https://stackoverflow.com/questions/ask in my case :-) ) from the toolbar?
If so, what should I look in to?
Thanks!
Solution
You can use the IWebBrowser2::get_LocationURL method.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow