|
Overview |
|
|
|
Group |
|
|
|
Quick Info
Windows NT
| Yes
| Win95
| Yes
| Win32s
| Yes
| Import Library
| -
| Header File
| winuser.h
| Unicode
| No
| Platform Notes
| None
|
|
|
EM_REPLACESEL
An application sends an EM_REPLACESEL message to replace the current selection
in an edit control with the specified text.
EM_REPLACESEL
fCanUndo = (BOOL) wParam ; // flag that specifies whether replacement
can be undone
lpszReplace = (LPCTSTR) lParam ; // pointer to replacement text string
Parameters
fCanUndo
Value of wParam. Specifies whether the replacement operation can be undone. If this is TRUE,
the operation can be undone. If this is FALSE , the operation cannot be undone.
lpszReplace
Value of lParam. Points to a null-terminated string containing the replacement text.
Return Values
This message does not return a value.
Remarks
Use the EM_REPLACESEL message to replace only a portion of the text in an edit
control. To replace all of the text, use the WM_SETTEXT message.
If there is no current selection, the replacement text is inserted at the
current location of the caret.
See Also
WM_SETTEXT
Related Links
Software for Delphi and C++ Builder developers
Software for Visual Studio .NET developers
Software for Visual Basic 6 developers
Delphi Tips&Tricks
MegaDetailed.NET
More Online Helps
Win32 Multimedia Programmer's Reference (mmedia.hlp)
OLE Programmer's Reference (ole.hlp)
Microsoft Windows Pen API Programmer's Reference (penapi.hlp)
Microsoft Windows Sockets 2 Reference (sock2.hlp)
Microsoft Windows Telephony API (TAPI) Programmer's Reference (tapi.hlp)
Unix Manual Pages
|