共用方式為


CHtmlEditCtrlBase::SetBookMark

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

HRESULT SetBookMark(
   LPCTSTR szAnchorName 
) const;

Parameters

  • szAnchorName
    The anchor name.

Return Value

Returns S_OK on success, or an error HRESULT on failure.

Remarks

This method sends the IDM_BOOKMARK command ID to the WebBrowser control.

Requirements

Header: afxhtml.h

See Also

Concepts

CHtmlEditCtrlBase Class

CHtmlEditCtrlBase Members

CHtmlEditCtrlBase::GetBookMark

CHtmlEditCtrlBase::UnBookmark