update the status line with the given text, prefixed with the selection description (if valid to do so)
- Author:
- Justin_Flude (Xara Group Ltd) <camelotdev@xara.com>
- Date:
- 21/7/95
- Parameters:
-
| pstrAppendum | pointer to the string to append to [INPUTS] strAppendee the string to append fAddSep if TRUE (the default) will append a space after strAppendee string. |
| pstrAppendum | the appended string [OUTPUTS] |
- Returns:
- TRUE if it was trivial to append, FALSE if the string to be appended had to be truncated.
- See also:
- SelRange::LayerDescription
Definition at line 5070 of file range.cpp. 05071 {
05072 INT32 nTotal = pstrAppendum->Length() + strAppendee.Length() + (fAddSep != 0);
05073 INT32 nMax = pstrAppendum->MaxLength();
05074 BOOL fNoTrunc= (nTotal < nMax);
05075 if (fNoTrunc)
05076 {
05077
05078 *pstrAppendum += strAppendee;
05079 if (fAddSep) *pstrAppendum += TEXT(" ");
05080 }
05081 else
05082 {
05083
05084 INT32 nTruncCount = strAppendee.Length() - (nTotal - nMax);
05085 if (nTruncCount > 0)
05086 {
05087
05088 String_256 strTrunc;
05089 strAppendee.Left(&strTrunc, nTruncCount);
05090 *pstrAppendum += strTrunc;
05091 if (fAddSep) *pstrAppendum += TEXT(" ");
05092 }
05093 }
05094
05095
05096 return fNoTrunc;
05097 }
|