Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

CRichEditCtrl won't let me scroll past 4093 character

1 view
Skip to first unread message

stringarray

unread,
Oct 15, 2008, 7:52:04 PM10/15/08
to
I can paste more characters than that, but pressing End key I can only see up
to the character 4093. After that, If I try to scroll using arrow keys, I
hear a beep. If I type new text, it pushes the old text to the right and I
can never see it, the only way to see that text is to delete text to the left
of it. Caret cursor also disappears.

This is in Visual Studio 2005 on Vista. See my other problem related to text
length and a CEdit control in this same newsgroup.

How can I display 50000 characters in a single line in my dialog?

Joseph M. Newcomer

unread,
Oct 15, 2008, 9:53:55 PM10/15/08
to
Did you mark it as a "multiline" edit control?
joe

On Wed, 15 Oct 2008 16:52:04 -0700, stringarray <strin...@discussions.microsoft.com>
wrote:

Joseph M. Newcomer [MVP]
email: newc...@flounder.com
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm

Damir Valiulin

unread,
Oct 16, 2008, 10:26:02 AM10/16/08
to
Try calling LimitText(0xffffff)

stringarray

unread,
Oct 16, 2008, 11:05:04 AM10/16/08
to
If I mark it as multiline, the characters added after the first 4092
characters show up in the second line. But I want to display everything in a
single line.

stringarray

unread,
Oct 16, 2008, 11:08:01 AM10/16/08
to
I tried that, and the problem persists.

Leo Violette

unread,
Oct 16, 2008, 9:27:10 PM10/16/08
to
I recall hearing that windows have rectagular limits.

Perhaps 4096 characters results in a virtual window whose width has hit the
maximum.

Joe probably knows this already and can verify it if what I'm saying is
true.

That being said, I think that you might need to do a custom control and
handle scrolling yourself. Yippee!
Leo.

"stringarray" <strin...@discussions.microsoft.com> wrote in message
news:37BCCC14-B2B7-4AC3...@microsoft.com...

Joseph M. Newcomer

unread,
Oct 16, 2008, 10:49:37 PM10/16/08
to
I hadn't thought of that, but it might be a 64K pixel limitation in MM_TEXT mode. It
might be interesting to GetTextExtent on that string and verify this. I've never wanted
to create a single line that long (I consider horizontal scrolling a really bad interface
methodology, and hate to be forced to use it), but this might be the cause.
joe

0 new messages