Sets all of the text in the control.
- pszText [in]
The string which will replace the current text.
If the method succeeds, the return value is S_OK.
If the method fails, the return value is the following HRESULT code. For more information on COM error codes, see Error Handling in COM.
Text could not be updated.
This method should be used with care; it essentially reinitializes the text services object with some new data. Any previous data and formatting information will be lost, including undo information.
If previous data has been copied to the clipboard, that data will be rendered completely to the clipboard (through OleFlushClipboard) before it is discarded.
This method does not support Undo.
Minimum supported client
|Windows 2000 Professional [desktop apps only]|
Minimum supported server
|Windows 2000 Server [desktop apps only]|
- Windowless Rich Edit Controls
- Other Resources
Build date: 11/16/2013