The information in this article applies to:
SUMMARY
The "Add to Favorites" dialog box provides a user interface for the user to
save a Web page as a favorite. The ShellUIHelper::AddFavorite method can be
used to invoke this dialog box from a Visual C++ or Visual Basic
application or from script on a Web page.
MORE INFORMATION
The AddFavorite method takes two parameters. The first parameter is the URL
of the Web page to save as a favorite. The second parameter is the title to
be used for this favorite (optional).
Scripting
Visual C++To invoke the "Add to Favorites" dialog box from a Visual C++ application that is hosting the WebBrowser control, insert the following code in your application:
NOTE: The \Inetsdk\Include directory must be listed first in the
Directories tab of the settings for the project.
Visual BasicTo invoke this dialog box in a Visual Basic application, add a reference to Shdocvw.dll to your project if your application is not hosting the WebBrowser control:
REFERENCESFor additional information, please see the following article in the Microsoft Knowledge Base: Q183339 OC: window.external Supports All Methods of ShellUIHelperFor more information, see the MSDN Online Web Workshop: http://msdn.microsoft.com/workshop (c) Microsoft Corporation 1998, All Rights Reserved. Contributions by Scott Roberts, Microsoft Corporation Additional query words: IShellUIHelper AddFavorite
Keywords : kbIE400 kbIE401 kbIE500 |
Last Reviewed: April 29, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |