Monday, February 1, 2016

How to Obtain Pocket IE is currently the focus of the Get Link URL? ATL implementation.




            


Pocket IE menu extensions in their own menu items to achieve the functionality of the current need to obtain URL link to get the focus, I do not know how, but also hope that teachers give advice.
Currently you can get IWebBrowser2, and you can use IWebBrowser2- & gt; get_LocalUrl (& amp; url); Get current page Url, now imagine the use of IWebBrowser2- & gt; get_Document ((IDispatch **) & amp; spDisp); Gets Document, then use IHTMLDocument2 - & gt; get_activeElement (& amp; IHTMLElement); Get the current active object and then get the URL, but not always in a specific implementation IHTMLDocument2... The code is also hoping to achieve, thank you very much! !
Reply:
Following.

No comments:

Post a Comment