|
LONG SetText( |
|
LONG nOffset, |
|
|
LPCTSTR lpszText |
|
); |
LONG SetText( |
|
LPCTSTR lpszText |
|
); |
The SetText method copies the specified text into the body
of the current message part.
Parameters
- nOffset
- The offset into the body of the message part. A value of -1
specifies that the text will be appended to the message body. If
this argument is omitted, the current message text is replaced with
the contents of the lpszText argument.
- lpszText
- A pointer to a string which specifies the text
to be copied to the current message part at the given offset.
Return Value
If the method succeeds, the return value is the number of bytes
copied into the message. A return value of zero indicates that no
text could be copied into the current message part. To get extended
error information, call GetLastError.
Requirements
Minimum Desktop Platform: Windows 7 Service Pack 1
Minimum Server Platform: Windows Server 2008 R2 Service Pack 1
Header File: cstools11.h
Import Library: csmsgv11.lib
Unicode: Implemented as Unicode and ANSI versions
See Also
AppendText,
ClearMessage,
ClearText,
CompareText,
GetText, SetHeader,
SetPart
|
|