Ivo Beltchev replied to David Lowndes
14-Nov-09 02:30 PM
Yeah, I think it is custom. But it is not that hard to do. Basically on
WM_COMMAND/EN_CHANGE measure the text (GetTextExtentPoint32), add some
padding, clamp with some minimal width (let us say
textmetrics.tmAveCharWidth*5). And finally clamp with the right edge of
the parent tree/list control so the control does not go out of the
parent's client area. Of course that is in reverse if you have RTL control.
Ivo