Dear all:

Here I meet with a problem about edit control.
My edit control has multiline property. And I set the max characters
through EM_LIMITTEXT with prarmeter -1, wanting to including 0x7FFFFFFE
characters.
But when I set text, I find that answer isn't right.
For example, when I reading 500k text contents and set to edit control,
edit control cannot display all contents. Although the text already set
right into edit control. It seems that edit control only display about
0xFFFF (65,535) characters. But when I call GetWindowText, I can get all
contents I set, seems that only display has problem.

Anyone meet this problem ? Or is it windows ce 4.2 's bug or can avoid it
through other method ?

Thanks a lot!

Jack.

Re: Edit Control of Window CE 4.2 problem by Paul

Paul
Tue May 31 12:28:02 CDT 2005

The edit control doesn't necessarily support storing that amount of data,
just because you set that limit. All the limit does is prevent more than
that amount from being entered. I guess you could call it a bug, but it's
really just the way it works and you should use something else for editing
of huge text streams.

Paul T.

"Jack" <rabbitliu@hotmail.com> wrote in message
news:%23KQnQSOZFHA.2124@TK2MSFTNGP14.phx.gbl...
> Dear all:
>
> Here I meet with a problem about edit control.
> My edit control has multiline property. And I set the max characters
> through EM_LIMITTEXT with prarmeter -1, wanting to including 0x7FFFFFFE
> characters.
> But when I set text, I find that answer isn't right.
> For example, when I reading 500k text contents and set to edit control,
> edit control cannot display all contents. Although the text already set
> right into edit control. It seems that edit control only display about
> 0xFFFF (65,535) characters. But when I call GetWindowText, I can get all
> contents I set, seems that only display has problem.
>
> Anyone meet this problem ? Or is it windows ce 4.2 's bug or can avoid
> it through other method ?
>
> Thanks a lot!
>
> Jack.
>
>
>