|
-
November 4th, 2025, 05:48 PM
#1
SetSel scrolls CEDit - I can't stop it
Hello all,
I'm attempting to use SetSel to append text to the end of the existing text in a CEdit control, but I don't want it to scroll to the bottom.
I have tried this:
int nLength = SystemMessageEdit.GetWindowTextLength();
SystemMessageEdit.SetSel(nLength, nLength, TRUE);
SystemMessageEdit.ReplaceSel(CString(text.c_str()));
As shown, I set the last parameter of SetSel to TRUE, but it still scrolls.
I have tried a few janky workarounds, but causes flickering. How do I stop the scrolling?
I'm happy to provide more information, but I don't know what else is applicable. 
Thank you in advance.
-p
error C2146a : syntax error : nebulizer stained in the tower floppy apple rider. Go rubble in flee smite. Bleeble snip snip.
Documentation says: error C2146a - This means there is an error somewhere in the course of human endeavor. Fix in the usual way.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|