IDM_ADDFAVORITES Command ID
Prompts the user with a dialog box to add the current document, a hyperlink, or an image to the Favorites list.
C++ Information
Command group CGID_MSHTML (defined in mshtmhst.h) Symbolic constant IDM_ADDFAVORITES User interface Yes. Set nCmdExecOpt to OLECMDEXECOPT_PROMPTUSER. IOleCommandTarget::Exec parameters pvaIn Set to NULL.pvaOut Set to NULL.Header file mshtmcid.h Applies to IHTMLDocument2::execCommand, IHTMLDocument2::queryCommandEnabled, IHTMLDocument2::queryCommandIndeterm, IHTMLDocument2::queryCommandState, IHTMLDocument2::queryCommandSupported, IHTMLDocument2::queryCommandValue, IOleCommandTarget::Exec, IOleCommandTarget::QueryStatus.
Remarks
If the mouse pointer is over a hyperlink or an image, IDM_ADDFAVORITES adds the hyperlink or image to the Favorites list. Otherwise, the current document is added.
Minimum Availability
Internet Explorer 5 and later.