Re: CEdit SetWindowText rediculously slow



Well, this question as posed is unanswerable. Reason: you told us NOTHING of value here.

First, how big is your text block? Numbers matter here!

Second, how did you come up with the number 950ms? Without knowing how this number was
derived, there is no way to tell what it means.

Third, what are you trying to accompish? For example, it is a common design error to use
an edit control as a way of recording text coming from a pipe, or from the equivalent of a
debug-print statement. This is almost always a mistake. Use a simple listbox, and it is
much faster. Not only that, but it is less prone to annoying flicker, to nasty side
effects if you are trying to read something while new material is being added, and other
issues. I discovered this around 1991, and over the next few years developed the
technology which is on my Web site as the Logging ListBox control.

So you have not stated your goals, have not said what the magnitude of the problem is, and
have not stated how you derived the numbers, so how is it we are supposed to give a
meaningful answer?
joe

On Tue, 18 Mar 2008 04:51:02 -0700, Rob <Rob@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:


Hi,
I have an MFC application, runing on XP.
When I do SetWindowText() on an EditControl, it takes >950 ms
This seems rediculous, even when reallocation takes place.

What can cause this.
Is there a faster way to update the text ?

Greetings,
Rob.

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



Relevant Pages

  • Re: Send abuse report
    ... flame war alive no matter what anyone does. ... the only reason for your "It's Time" post was to put an end to a ... "Flame-war." ... I've got to add it to my web site. ...
    (misc.transport.trucking)
  • Re: How to implement "Check for Updates"?
    ... my web site, and from external sources. ... I have no reason to think that the ... the built-in updater over 3 days after the release date". ...
    (comp.sys.mac.programmer.help)
  • Re: Future Date/Print Date Fields
    ... The printdate field is a bit more complicated, in that it displays the date ... Word MVP web site http://word.mvps.org ... If for some reason we need to print ...
    (microsoft.public.word.docmanagement)
  • Re: Perl For Amateur Computer Programmers
    ... of international earthquake forecasting procedures coordinated. ... For some reason the international picture regarding this type of research is ... Generally with my Web site pages I have time to prepare ...
    (comp.lang.perl.misc)
  • Re: Netbeans failure mode
    ... Yet quite clearly it is, since their Web site announces proudly the release of a shiny new version, and that version is 6.5. ... Really, it suffices that 6.1 is merely no longer the most current version for my point to be made; if 6.5's only change from 6.1 had been to fix a single typo in a three-levels-deep dialog box label somewhere in the NB GUI, it would STILL suffice to make the statement "Your IDE is up to date!", when still emitted by NB 6.1, an erroneous one. ... That you're still trying to find excuses for 6.1's error, even in the face of such overwhelming evidence that it has no excuse, is a sign that you are arguing from emotion rather than reason. ...
    (comp.lang.java.programmer)