Edit_GetSel macro

Gets the starting and ending character positions of the current selection in an edit or rich edit control. You can use this macro or send the EM_GETSEL message explicitly.

Syntax

void Edit_GetSel(
   hwndCtl
);

Parameters

hwndCtl

Type: HWND

A handle to the control.

Return Value

None

Remarks

This macro does not have the complete functionality of the EM_GETSEL message, because it does not receive the 32-bit return values in the parameters of SendMessage.

Requirements

   
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header windowsx.h