G
Guest
I'm currently programming a form application in VC++.NET managed code. There
is a RichTextBox and some other controllers on a form. When user is working
on other controllers, like mouse up/down on a picture controller to draw a
picture, I'd like to show some messages on the RichTextBox. I'd like to see
the RichTextBox automatically scrolls to end when new text is appended.
However, during the picture operation, I don't want to lose the focus and
give it to RichTextBox. That means I can't use ScrollToCaret() to move
RichTextBox to the end.
Although TextBox supports AutoScroll and it works perfectly to scroll down
to the end, it seems I can't put too much characters into TextBox. That's the
reason why I have to choose RichTextBox instead of TextBox. But RichTextBox
doesn't support AutoScroll. Someone said I could use Win32 function
SendMessage(), but I don't know how to get current HWnd in VC++.NET managed
code.
Any idea about RichText auto scroll to end? Thanks in advance.
Bin
is a RichTextBox and some other controllers on a form. When user is working
on other controllers, like mouse up/down on a picture controller to draw a
picture, I'd like to show some messages on the RichTextBox. I'd like to see
the RichTextBox automatically scrolls to end when new text is appended.
However, during the picture operation, I don't want to lose the focus and
give it to RichTextBox. That means I can't use ScrollToCaret() to move
RichTextBox to the end.
Although TextBox supports AutoScroll and it works perfectly to scroll down
to the end, it seems I can't put too much characters into TextBox. That's the
reason why I have to choose RichTextBox instead of TextBox. But RichTextBox
doesn't support AutoScroll. Someone said I could use Win32 function
SendMessage(), but I don't know how to get current HWnd in VC++.NET managed
code.
Any idea about RichText auto scroll to end? Thanks in advance.
Bin