the concept comes from someone else here, though i forget who (if you, let me know and i'll be glad to give credit)   rather than toggling line wrapping on and off in an AutoIt multi-line edit control, which apparently is not doable, this function destroys and recreates the control, preserving various aspects of the original   it works by creating the new control with or without a horizontal scroll bar ($WS_HSCROLL)   i'm no pro, so critique is welcome #include-once #include <WinAPI.