Share via


CHtmlEditCtrlBase::HyperLink

Inserts a hyperlink on the current selection.

HRESULT HyperLink(
   LPCTSTR szUrl = NULL 
) const;

Parameters

  • szUrl
    The hyperlink URL.

Return Value

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

Remarks

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

Requirements

Header: afxhtml.h

See Also

Reference

CHtmlEditCtrlBase Class

CHtmlEditCtrlBase::Unlink

Other Resources

CHtmlEditCtrlBase Members