Edit_ReplaceSel macro (windowsx.h)

Replaces the selected text in an edit control or a rich edit control with the specified text. You can use this macro or send the EM_REPLACESEL message explicitly.

Syntax

void Edit_ReplaceSel(
   hwndCtl,
   lpszReplace
);

Parameters

hwndCtl

Type: HWND

A handle to the control.

lpszReplace

Type: LPCTSTR

A pointer to a null-terminated string containing the replacement text.

Return value

None

Remarks

For more information, see EM_REPLACESEL.

Requirements

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