CRichEditCtrl::SetAutoURLDetect
Sets the rich edit control to automatically detect a URL.
BOOL SetAutoURLDetect(
BOOL bEnable = TRUE
);
Параметры
- bEnable
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 Windows 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. |
Требования
Header: afxcmn.h