CRichEdit.GetAutoUrlDetectmethod
Indicates whether the auto URL detection is turned on in the rich edit control.
Syntax
FUNCTION GetAutoUrlDetect (BYVAL hRichEdit AS HWND) AS LONG
Parameters
| Name | Description | |
|---|---|---|
hRichEdit | The handle of the rich edit control. |
Return value
If auto-URL detection is active, the return value is 1.
If auto-URL detection is inactive, the return value is 0.
Description
Indicates whether the auto URL detection is turned on in the rich edit control.
Remarks
When auto URL detection is on, Microsoft Rich Edit is constantly checking typed text for a valid URL. Rich Edit recognizes URLs that start with these prefixes:
- http:
- file:
- mailto:
- ftp:
- https:
- gopher:
- nntp:
- prospero:
- telnet:
- news:
- wais:
- outlook:
Rich Edit also recognizes standard path names that start with \\\. When Rich Edit locates a URL, it changes the URL text color, underlines the text, and notifies the client using EN_LINK.
Reference
- Defined in AfxNova/CRichEdit.inc:365
- Documented in Windows/WIndows Controls/CRichEdit Class.md
- Topic: CRichEdit Class