The information in this article applies to:
SUMMARYIEFavMnu demonstrates how to enumerate the Favorites folder and create a Favorites menu. This sample hosts the WebBrowser control in order to facilitate testing of the Favorites menu. Channels and Shell Links are also included in the Favorites menu just as in Internet Explorer 4.0x. MORE INFORMATIONThe following files are available for download from the Microsoft
Download Center. Click the file names below to download the files: IEFavMnu.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. IEFavMnu enumerates the Favorites folder and adds the name of each item to the Favorites menu. Also, the Uniform Resource Locator (URL) to which the favorite points is added to a CStringArray object. When the user chooses a favorite from the Favorites menu, the CStringArray is used to determine where to navigate. IEFavMnu performs the following steps in order to enumerate the Favorites folder and create the Favorites menu:
When the user chooses a favorite from the menu, the OnFavoritesURL() method is called. Then the IWebBrowser2::Navigate() method is called with the URL of the favorite which is retrieved from the CStringArray. The offset into the CStringArray that contains the URL of the selected favorite is determined by subtracting the ID of the first favorite from the command ID that is sent to the OnFavoritesURL() method. © Microsoft Corporation 1998, All Rights Reserved. Additional query words: Favorite ShellLink Channel
Keywords : kbfile kbsample kbIE400 kbIE401 InetSDKActiveDeskt kbIntDev |
Last Reviewed: December 21, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |