473,386 Members | 1,785 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

How do you interactively write to a CEditView Window

(Newbie): I am trying to output status and diagnostic information to a
CEditView Window and allow users input annotations to the same window. The
User input is handled by Windows. How do I output to the window? How do I
ensure that program output is appended to existing text? DrawText erases the
screen and outputs to (0,0). What is the magic? (Please)

skidmarks
Jun 27 '08 #1
2 1999
"skidmarks" <sk*******@discussions.microsoft.comwrote in message
news:AF**********************************@microsof t.com...
(Newbie): I am trying to output status and diagnostic information to a
CEditView Window and allow users input annotations to the same window. The
User input is handled by Windows. How do I output to the window? How do I
ensure that program output is appended to existing text? DrawText erases
the
screen and outputs to (0,0). What is the magic? (Please)

You shouldn't be drawing text on the CEditView window.

Instead, you can use CEditView::GetEditCtrl() to get the edit control
(CEdit) associated with the CEditView.
With the CEdit object, you can use its methods to insert text into the
control.

Mark

--
Mark Salsbery
Microsoft MVP - Visual C++

>
skidmarks

Jun 27 '08 #2
Mark;

Thank you. I misspoke when I said that I write to a CEditView window. I
actually use the <CEditCtrl>.SetSel and <CEditCtrl>.ReplaceSel methods to
write.

Thanks

skidmarks
Jun 27 '08 #3

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

Similar topics

3
by: Jane Austine | last post by:
I need to control a command line program via python. I first tried popen2 and 3 but I couldn't find a way to talk to the subprocess interactively; that is, read some and then write some, and...
4
by: Byrom, R (Rob) | last post by:
hi, I'd like to be able to trap console output as the user writes interactively. For example if the user press the up or down keys I'd like to be able to catch this and return the last executed...
2
by: Philip Carter | last post by:
Hello there, I am using: Python 2.2.3 (#42, May 30 2003, 18:12:08) on win32 on a win2k box. I have the following piece of python code: inputTmpFileOnSTAXServer='c:/temp/phil.txt'
2
by: Jimmy Phillips | last post by:
I am fairly new to Perl so I wasn't real sure how to title this. I want to build a regex interactively in a program and then run it. So far I do it by writing it to a file along with the Perl...
0
by: MackS | last post by:
Hi folks, Following FAQ 3.1, I am now interacting with the compiler interactively (in debug mode) by calling $ perl -de 1 However, I am not able to define a new subroutine for some repeated...
2
by: Thomas K. | last post by:
Hallo, ich habe eine MDI-Anwendung welche mir Vektorgraphiken darstellt (CView). Ich habe einen zweiten View (CEditView) hinzugefügt um die entsprechende ASCII-Datei anzeigen zu können -> somit...
9
by: James Marshall | last post by:
I'm writing a library where I want to override document.write(), but for all document objects; thus, I want to put it in the prototype. I tried Document.prototype.write= my_doc_write ; but it...
2
by: Adam | last post by:
This is frustrating me. Opening IE displays the following code fine. When I open a new window the code no longer works. All the HTML is overwritten with the first document.write statement. Tried...
2
by: David Sanders | last post by:
Hi, I have a script with function definitions which I load into ipython for interactive use. These functions modify a global numpy array, whose size I need to be able to change interactively. ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
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,...

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.