Export (0) Print
Expand All
1 out of 2 rated this helpful - Rate this topic

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 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Windowsx.h

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.