win32 edit control
  Home FAQ Contact Sign in
comp.os.mswindows.programmer.controls only
 
Advanced search
POPULAR GROUPS

more...

comp.os ... controls Profile…
 Up
win32 edit control         


Author: dgould
Date: Dec 7, 2007 12:11

Hoping for some help here. I have an edit control receives data via a
socket at high data rates. I am using the classic edit control my
question is how do I make it act like a FIFO. Once it fills up to
max_chars have it start removing lines of data from the buffer to
allow room for more data in the edit control.
3 Comments
Re: win32 edit control         


Author: dgould
Date: Dec 20, 2007 15:19

On Dec 7, 6:55 pm, Bob Smith sudleydeplacespam.com> wrote:
> dgo...@gmail.com wrote:
>> Hoping for some help here. I have an edit control receives data via a
>> socket at high data rates. I am using the classic edit control my
>> question is how do I make it act like a FIFO. Once it fills up to
>> max_chars have it start removing lines of data from the buffer to
>> allow room for more data in the edit control.
>
> The owner of the control receives an EN_MAXTEXT notification message
> "when the current text insertion has exceeded the specified number of
> characters for the edit control. The text insertion has been
> truncated." (from an old Windows help file).
>
> At that point, you can delete chars or whatever, but you can expect to
> spend a few CPU cycles doing it, so you'll need to watch out for overrun.
>
> Perhaps you have your reasons for using an edit control -- if they
> aren't strong, I would consider using a ring buffer instead
>
> -- ...
Show full article (1.29Kb)
no comments
Re: win32 edit control         


Author: dgould
Date: Dec 20, 2007 15:28

On Dec 20, 6:19 pm, dgo...@gmail.com wrote:
> On Dec 7, 6:55 pm, Bob Smith sudleydeplacespam.com> wrote:
>
>
>
>> dgo...@gmail.com wrote:
>>> Hoping for some help here. I have an edit control receives data via a
>>> socket at high data rates. I am using the classic edit control my
>>> question is how do I make it act like a FIFO. Once it fills up to
>>> max_chars have it start removing lines of data from the buffer to
>>> allow room for more data in the edit control.
>
>> The owner of the control receives an EN_MAXTEXT notification message
>> "when the current text insertion has exceeded the specified number of
>> characters for the edit control. The text insertion has been
>> truncated." (from an old Windows help file).
>
>> At that point, you can delete chars or whatever, but you can expect to
>> spend a few CPU cycles doing it, so you'll need to watch out for overrun.
> ...
Show full article (1.71Kb)
no comments
Re: win32 edit control         


Author: Bob Smith
Date: Jan 8, 2008 08:50

dgould@gmail.com wrote:
> On Dec 20, 6:19 pm, dgo...@gmail.com wrote:
>> On Dec 7, 6:55 pm, Bob Smith sudleydeplacespam.com> wrote:
>>
>>
>>
>>> dgo...@gmail.com wrote:
>>>> Hoping for some help here. I have an edit control receives data via a
>>>> socket at high data rates. I am using the classic edit control my
>>>> question is how do I make it act like a FIFO. Once it fills up to
>>>> max_chars have it start removing lines of data from the buffer to
>>>> allow room for more data in the edit control.
>>> The owner of the control receives an EN_MAXTEXT notification message
>>> "when the current text insertion has exceeded the specified number of
>>> characters for the edit control. The text insertion has been
>>> truncated." (from an old Windows help file).
>>> At that point, you can delete chars or whatever, but you can expect to
>>> spend a few CPU cycles doing it, so you'll need to watch out for overrun.
>>> Perhaps you have your reasons for using an edit control -- if they
>>> aren't strong, I would consider using a ring buffer instead ...
Show full article (2.34Kb)
no comments