MFC, append text to textbox


/ Published in: C++
Save to your folder(s)

Set textbox to multi-line. ASSERT statement verifies.

Apparently executes quicker than GetWindowText, Append, SetWindowText.

Appears to auto-scroll otherwise, use this to scroll to bottom:
edit.SendMessage(WM_VSCROLL, SB_BOTTOM, 0 );

Haven't figured out how to stop scrolling when it's not already at the bottom.

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.