Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
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 |