The information in this article applies to:
SUMMARY
WebBand is a Explorer band sample that demonstrates how to host the
WebBrowser control in an Explorer Band. (For more information about
Explorer bands, please see the REFERENCES section in this article.)
MORE INFORMATIONThe following files are available for download from the Microsoft
Download Center. Click the file names below to download the files: Webband.exeFor more information about how to download files from the Microsoft Download Center, please visit the Download Center at the following Web address http://www.microsoft.com/downloads/search.aspand then click How to use the Microsoft Download Center. WebBand is a band object sample that demonstrates how to host the WebBrowser control in an Vertical/Explorer band. This sample is very similar to the Search band that comes with Internet Explorer 4.0 and later. To use WebBand, follow these steps.
WebBand is able to get around the keystroke issues that are most commonly associated with hosting the WebBrowser control in an Explorer band. These keystroke issues often cause problems with the backspace and delete keys when focus is set to an edit box by clicking on it with the left mouse button. These problems are caused by focus problems. The problem is usually that Internet Explorer does not know that the band currently has the focus. In order to alleviate these problems, WebBand implements IOleControlSite. In the IOleControlSite::OnFocus method, the WebBrowser's IInputObjectSite::OnFocusChangesIS must be called to tell the WebBrowser that WebBand now has the focus. Whenever a key is pressed, three things occur:
Using Internet Explorer 4.0, you are only able to navigate to WebBand.htm and Results.htm. The Back link on the search results page, has a fragment identifier (that is, bookmark) associated with it. This fragment identifier is currently named "#_mysearch." In the BeforeNavigate2 event handler, WebBand checks for this fragment identifier in the URL. If it exists in the URL, the target of the navigation is changed to the band window. NOTE: This sample was created using Visual C++ 6.0. It will compile in Visual C++ 5.0 but you will see some compiler warnings due to new Visual C++ 6.0 compiler directives. REFERENCESExplorer Bars/Band Objects in the MSDN Online Web Builder Workshop: http://msdn.microsoft.com/workshop/browser/ext/overview/bands.aspBandObjs sample in the Internet Client SDK: http://msdn.microsoft.com/library/devprods/vs6/vc++/vcsample/vcsmpbandobjs.htmReusing the WebBrowser control: http://msdn.microsoft.com/workshop/browser/webbrowser/webbrowser.asp(c) Microsoft Corporation 1998, All Rights Reserved. Contributions by Scott Roberts, Microsoft Corporation. Additional query words:
Keywords : kbfile kbsample kbIE400 kbIE401 kbIE401sp1 kbIE500dp1 kbIE500 kbDSupport |
Last Reviewed: December 8, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |