Under Windows 95 and Windows NT 4.0, a label can add ellipsis to the text, if the text does not fit.
The following methods are possible:
Replaces characters at the end of the string with ellipses, if necessary, so that the result fits in the specified rectangle.
Replaces characters in the middle of the string with ellipsis. If the string contains backslash (\) characters, it preserves as much of the text after the last backslash as possible.
Truncates text that does not fit and adds ellipses.
To use these methods, you have to add to following defines:
#define WLSEndEllipsis ((WStyle)0x00004000L)
#define WLSPathEllipsis ((WStyle)0x00008000L)
#define WLSWordEllipsis ((WStyle)0x0000C000L)
#define WLSEllipsisMask ((WStyle)0x0000C000L)
and change the style in the create event of a form:
label_1->SetStyle( label_1->GetStyle() | WLSPathEllipsis );