Edit_SetSel macro

Selects a range of characters in an edit or rich edit control. You can use this macro or send the EM_SETSEL message explicitly.

Syntax


void Edit_SetSel(
  HWND hwndCtl,
  int ichStart,
  int ichEnd
);

Parameters

hwndCtl

Type: HWND

A handle to the control.

ichStart

Type: int

The starting character position of the selection.

ichEnd

Type: int

The ending character position of the selection.

Return value

No return value.

Remarks

For more information, see EM_SETSEL.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Windowsx.h

 

 

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.