How can I replace part of the text in EditBox with ES_MULTILINE style without highlighting this text? Now I do it through EM_SETSEL and EM_REPLACESEL, but when I select text, the EditBox window will scroll to the selection, which does not suit me.

    1 answer 1

    1. Get all text into a string via WM_GETTEXTLENGTH , WM_GETTEXT
    2. Edit row
    3. Write the string back via WM_SETTEXT
    • The same thing - skips the scroll. - Alexander Pateychuk
    • one
      LockWindowUpdate A if you pull LockWindowUpdate or BeginPaint ? - Anton Shchyrov
    • Too does not help - Alexander Pateychuk