Sets the rich edit control to automatically detect a URL.

BOOL SetAutoURLDetect(
   BOOL bEnable = TRUE 



Specifies whether the control is set to automatically detect a URL. If TRUE, it is enabled. If FALSE, it is disabled.

Zero if successful, otherwise nonzero. For example, the message may fail due to insufficient memory.

If enabled, the rich edit control will scan the text to determine if it matches a standard URL format. For a list of these URL formats, see EM_AUTOURLDETECT in the Platform SDK.


Do not set SetAutoURLDetect to TRUE if your edit control uses the CFE_LINK effect for text other than URLs. SetAutoURLDetect enables this effect for URLs and disables it for all other text. See EN_LINK for more information about the CFE_LINK effect.

Community Additions