MSDN Home >  MSDN Library >  User Interface Design and Development >  Windows Controls >  Individual Control Information >  Rich Edit Controls > 

EM_GETAUTOURLDETECT Message


The EM_GETAUTOURLDETECT message indicates whether the auto URL detection is turned on in the rich edit control.

Syntax

To send this message, call the SendMessage function as follows.
lResult = SendMessage(     // returns LRESULT in lResult
   (HWND) hWndControl,     // handle to destination control
   (UINT) EM_GETAUTOURLDETECT,     // message ID
   (WPARAM) wParam,     // = (WPARAM) () wParam;
   (LPARAM) lParam     // = (LPARAM) () lParam;
);

Parameters

wParam
Not used; must be zero.
lParam
Not used; must be zero.

Return Value

If auto-URL detection is active, the return value is 1.

If auto-URL detection is inactive, the return value is 0.


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.

Message Information

HeaderDeclared in Richedit.h
Minimum operating systems Windows 95 with Rich Edit 2.0 , Windows 98, Windows NT 4.0

See Also

Rich Edit Controls, EN_LINK
 Contact Us   |  E-Mail this Page   |  MSDN Flash Newsletter
 c 2002 Microsoft Corporation. All rights reserved.   Terms of Use  Privacy Statement   Accessibility