Please enable JavaScript to view this site.

A-Shell Development History

AUI static control refinement: Minimize confusion between MBF_PATHELLIPSIS and MBF_WRAP by ignoring both of them for static controls whose height is less than or equal to 1 row.

Background: MBF_WRAP was originally intended and documented to apply to buttons only, since wrap is automatic with static controls. Because MBF_WRAP only applies to buttons, and MBF_PATHELLIPSIS only applies to static text controls, it seemed safe to allow them to share the same numeric bit value. But, apparently it is just too natural or tempting to specify MBF_WRAP on static text controls as well. Previously, this resulted in the near opposite of the intended effect, since both of the ellipsis options (MBF_PATHELLIPSIS and MBF_WORDELLIPSIS) disable the wrap logic within the standard text control. Now, since MBF_PATHELLIPSIS only makes sense for single-line output, the bit is cleared if the control height is more than 1 row (1000 millirows). Since wrap is the normal behavior for static text controls, spuriously specifying the MBF_WRAP option is now essentially harmless.