Sdílet prostřednictvím


IDM_BOOKMARK Command ID

Creates a bookmark anchor or retrieves the name of a bookmark anchor for the current selection or insertion point.

C++ Information

Command group CGID_MSHTML (defined in mshtmhst.h)
Symbolic constant IDM_BOOKMARK
User interface None. Set nCmdExecOpt to OLECMDEXECOPT_DONTPROMPTUSER.
IOleCommandTarget::Exec parameters
pvaInVARIANT of type VT_BSTR that specifies a valid anchor name. Providing an empty string will cause the command to fail.
pvaOutVARIANT of type VT_BSTR that receives the anchor name of the bookmark. Set pvaIn to NULL to retrieve information to pvaOut.
Header file mshtmcid.h
Applies to IHTMLDocument2::execCommand, IHTMLDocument2::queryCommandEnabled, IHTMLDocument2::queryCommandIndeterm, IHTMLDocument2::queryCommandState, IHTMLDocument2::queryCommandSupported, IHTMLDocument2::queryCommandValue, IOleCommandTarget::Exec, IOleCommandTarget::QueryStatus.

Remarks

The HTML generated by this command may vary depending on the version of Windows Internet Explorer.

Minimum Availability

Internet Explorer 4.0 and later.