C++ – Get address of current page in Internet Explorer from toolbar


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?


Best Solution