EmEditor Home - EmEditor Help - Plug-in Reference - Inline Functions

Editor_SetSelTypeEx

Sets the type of selection status. You can use this inline function or explicitly send the EE_SET_SEL_TYPE message.

Editor_SetSelTypeEx( hwnd, bNeedAlways, nSelType );

Parameters

hwnd

Specifies the window handle of the view or frame of EmEditor.

bNeedAlways

If this parameter is TRUE, the type of selection status can be set even if none is selected. If this parameter is FALSE, SEL_TYPE_NONE will cancel the selection.

nSelType

You can specify a combination of the following values. However, SEL_TYPE_NONE, SEL_TYPE_CHAR, SEL_TYPE_LINE, SEL_TYPE_BOX cannot be combined. Only SEL_TYPE_KEYBOARD can be combined with SEL_TYPE_NONE, SEL_TYPE_CHAR, SEL_TYPE_LINE, or SEL_TYPE_BOX.

SEL_TYPE_NONE Not selected.
SEL_TYPE_CHAR Stream selection mode.
SEL_TYPE_LINE Line selection mode.
SEL_TYPE_BOX Vertical selection mode.
SEL_TYPE_KEYBOARD Specifies the keyboard selection mode. This value can be combined with another value.

Return Values

Not used.

Version

Supported on EmEditor Professional Version 5.00 or later.

Copyright 2003-2015 by Emurasoft, Inc.