473,756 Members | 1,861 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

High Speed Text Control

Hello all,
I've been getting back into Windows based graphical applications after
working on pure servers for work. I'm working on a utility that connects
into my servers at work (they use the same message format) and just
simply sends data into them and displays results (one message in from me
could result in millions of asynchronous replies back from the server
over the course of a day, etc). I use it to test.
I currently have a Java app that does this and outputs via the console.
I wanted to port it to MFC to add features and get reacquainted with
MFC. I tried a CEdit, but it seems too slow and cumbersome
(getwindowtext( ), append(), setwindowtext() , setscrolline()) . Is there
another way around CEdit?
Or perhaps another control out there already?
Nov 21 '06 #1
2 2510
I wanted to port it to MFC to add features and get reacquainted with
MFC. I tried a CEdit, but it seems too slow and cumbersome
(getwindowtext( ), append(), setwindowtext() , setscrolline()) . Is there
another way around CEdit?
Try SetSel( –1, –1, ... ) followed by ReplaceSel( lpszNewText, ... )
You have to decide if you want to scroll (in SetSel) and you want undo (in
ReplaceSel). Both scrolling and undo can affect speed.

--
Mihai Nita [Microsoft MVP, Windows - SDK]
http://www.mihai-nita.net
------------------------------------------
Replace _year_ with _ to get the real email
Nov 22 '06 #2
Mihai N. wrote:
>I wanted to port it to MFC to add features and get reacquainted with
MFC. I tried a CEdit, but it seems too slow and cumbersome
(getwindowtext (), append(), setwindowtext() , setscrolline()) . Is there
another way around CEdit?
Try SetSel( –1, –1, ... ) followed by ReplaceSel( lpszNewText, ... )
You have to decide if you want to scroll (in SetSel) and you want undo (in
ReplaceSel). Both scrolling and undo can affect speed.
I'll try that. I do need the scrolling, and I need it to scroll down as
new data comes in which I had working. I do not need an undo, this is
just a display.

Thanks.
Nov 23 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1942
by: Gary D. Rezek | last post by:
Hi All, I've got a set of asp pages used to register students into the ResNet database. Testing things out under different browser security settings I ran into a problem. The following buttons.... <INPUT type=button id="EditInfo" name="EditInfo" value="Edit Information" class="ButtonBlue" style="WIDTH: 150px" onclick="location.href='EditResNetInformation.asp'"> <INPUT type=button id="GoToGetMAC" name="GoToGetMAC" value="Continue"...
6
4736
by: Alexander Muylaert | last post by:
Hi Does anyone know a good starting point about high speed string processing in C#? What I need is a very fast routine for a case insensitive "contains". e == E == é == ë == ... Kind regards
1
1994
by: Nirupam Gupta | last post by:
Hi I have been assigned a Project to develope the interface of DLP Projector the interface should be able to control the functions of Projector lik Contrast Brightness, Volume Mute,
4
1421
by: David Pendrey | last post by:
Greetings, I am writing an application which will need to move around 50 bitmaps on the form at a speed high enough that it appears smooth. I am currently using some custom controls to contain the bitmap and the logic for the movement in the same location and have have a loop which updates all bitmaps each 50ms (20fps). Unfortunatly the time taken to render this is too great and my application does not function correctly. The solution does...
1
4853
by: Damien | last post by:
Hi guys, I'm looking for ideas for troubleshooting the following. We've tried some random things to try to treat the symptoms, but none seem robust enough to use when we go live, and we'd rather discover the root cause: We've got an ASP.NET application, running on framework 1.1 on Windows 2003 (IIS 6). Under default settings, during testing by two users, we're seeing the CPU usage on w3wp.exe rocket up and stay up (and thus cause web...
4
6569
by: dean.greg | last post by:
Im looking for a way to generate thumbnails from an image as fast as possible. Currently I'm using GDI+ however going from 1024x768 to 100x100 takes too long. I'd imagine the whole process can be optimized by using hardware acceleration (ie DirectX), however I am not all that familar with the DirectX API. What I'm looking for is some direction, or even some sample/psuedo code, that might point me in the right direction. If not...
3
2824
by: Mauro D. | last post by:
Hi, In my usercontrol I bind the BindingSource I pass via property to all the control inside the usercontrol. For example Control ctl=new TextBox(); ctl.DataBindings.Add("Text", binding, prop, false, DataSourceUpdateMode.OnPropertyChanged);
9
2986
by: pbd22 | last post by:
Hi. This is just a disaster management question. I am using XMLHTTP for the dynamic loading of content in a very crucial area of my web site. Same as an IFrame, but using XMLHTTP and a DIV. I got the core of the javascript from here: http://www.dynamicdrive.com/dynamicindex17/ajaxcontent.htm I noticed in the demo that sometimes the content takes a long
7
502
by: Andrew Wan | last post by:
I found this excellent High Speed Timer (in Pascal). I compiled it (using Turbo Pascal 7 and it runs fine): http://www.sorucevap.com/bilisimteknolojisi/programcilik/pascal/ders.asp?207995 and same High Speed Timer here too: http://groups.google.com/group/comp.lang.pascal/browse_thread/thread/92e9398f16c10ba4/e67ff3cf587648ef?lnk=st&q=inline(%24CD)+inline(%241C)+inline(%249C)&rnum=1&hl=en#e67ff3cf587648ef I converted it to C (using p2c),...
0
9431
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9255
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10014
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9844
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9819
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9689
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6514
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5119
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5289
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.