How to retrive current URL

Suppose I am creating an ATL COM project to place a button on Internet Explorer. Now When the user clicks on the button it should Retrive the URL of that particular Internet Explorer window. What function should I use for that??
[228 byte] By [maverick786us] at [2007-11-20 0:26:36]
# 1 Re: How to retrive current URL
How To Retrieve the URL of a Web Page from an ActiveX Control ( http://support.microsoft.com/kb/181678/EN-US/)

- petter
wildfrog at 2007-11-10 23:21:32 >