

Its class name is "ToolbarWindow32".įinding these windows is done by the FindAddressBar function in barlib.cpp: The second is the toolbar itself, which we want to manipulate.The first one receives and handles WM_COMMAND messages sent from the toolbar when the user clicks the button.

Notice that the "Search" button (magnifying glass) is not part of the toolbar but the address combo box.Īfter we select the toolbar window, Spy++ reveals to us this window hierarchy:Īs we can see, two of the windows are interesting to us: To locate the toolbar window, just use the Window Search tool Spy++ (Search -> Find Window.) and drag and drop on the toolbar next to the address edit box. Microsoft Spy++ is the perfect tool for the job. The first this we should do is to explore the window structure of Internet Explorer. Sneaking into Internet Explorer's Address Bar Finding the Address Bar Window You should be familiar with programming BHOs (Browser Helper Objects) in order to follow the article since the basics about BHOs are not covered here. This article will show how dirty and convoluted this task can get. This could be a problem if we want to preserve the same user interface for our extensions across different browsers.Ī solution is possible but it relies heavily on undocumented structures and the behavior of Internet Explorer. One of the easy tasks to do when you build Firefox extensions is to add custom buttons next to the address bar, but it is officially impossible to do that in Internet Explorer. While Internet Explorer has nice extensibility support, it does not go as far as Firefox. Download IEBarLib source code - 37.3 KB.
