Export (0) Print
Expand All

Edit_ReplaceSel macro

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(
   HWND    hwndCtl,
   LPCTSTR 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

No return value.

Remarks

For more information, see EM_REPLACESEL.

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Windowsx.h

 

 

Community Additions

ADD
Show:
© 2015 Microsoft