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

EM_SELECTIONTYPE Message


The EM_SELECTIONTYPE message determines the selection type for a 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_SELECTIONTYPE,     // 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 the selection is empty, the return value is SEL_EMPTY.

If the selection is not empty, the return value is a set of flags containing one or more of the following values.

SEL_TEXTText.
SEL_OBJECTAt least one Component Object Model (COM) object.
SEL_MULTICHARMore than one character of text.
SEL_MULTIOBJECTMore than one COM object.

Remarks

This message is useful during WM_SIZE processing for the parent of a bottomless rich edit control.

Message Information

HeaderDeclared in Richedit.h
Minimum operating systems Windows 95, Windows NT 4.0

See Also

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