Click here to Skip to main content
15,914,417 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalcatch RETURN in an edit control Pin
11-Apr-02 19:58
suss11-Apr-02 19:58 
GeneralRe: catch RETURN in an edit control Pin
11-Apr-02 19:56
suss11-Apr-02 19:56 
GeneralRe: catch RETURN in an edit control Pin
11-Apr-02 20:10
suss11-Apr-02 20:10 
GeneralRe: catch RETURN in an edit control Pin
EricMC11-Apr-02 20:19
EricMC11-Apr-02 20:19 
GeneralRe: catch RETURN in an edit control Pin
11-Apr-02 20:53
suss11-Apr-02 20:53 
GeneralRe: catch RETURN in an edit control Pin
Tim Smith12-Apr-02 4:45
Tim Smith12-Apr-02 4:45 
General1394 Firewire Video Programming Pin
MarkPQ11-Apr-02 19:40
MarkPQ11-Apr-02 19:40 
GeneralInserting Text (Adding) In CEditView :: MFC Pin
valikac11-Apr-02 18:07
valikac11-Apr-02 18:07 
Hello.

I have a doc/view program. The view was derived from CEditView. It however, would not display text when I open a text file with text in it.

For example:

Source file:
---
a
b
c
---

When I open that file up, the program copies the text into a CStringArray object. I can change any line by adding or removing text. However, the program will not display the text in view. The only way to get it to display the text is if I type in the text manually.

The view was derived from CEditView. CEditView allows access to the CEditCtrl. Nonetheless, I cannot find a way to *insert* a CString into the CEditCtrl inside of CEditView. Furthermore, I tried drawing the text, but view still would not display anything.

Is it possible to add text or display text in the CEditView without having to manual type it in? CEditCtrl returns a CEdit reference object. There is a function, GetLine(line, string) to get text from a specific line. However, there are no functions to set the text at a specific line.

Thanks,
Kuphryn
GeneralRe: Inserting Text (Adding) In CEditView :: MFC Pin
Christian Graus11-Apr-02 20:55
protectorChristian Graus11-Apr-02 20:55 
GeneralScrollbar questions Pin
ejw11-Apr-02 16:22
ejw11-Apr-02 16:22 
GeneralRe: Scrollbar questions Pin
Ravi Bhavnani11-Apr-02 16:32
professionalRavi Bhavnani11-Apr-02 16:32 
GeneralRe: Scrollbar questions Pin
Shog911-Apr-02 17:10
sitebuilderShog911-Apr-02 17:10 
GeneralRe: Scrollbar questions Pin
ejw11-Apr-02 19:10
ejw11-Apr-02 19:10 
Questionhash_map in C++ 7? Pin
blizzymadden11-Apr-02 15:03
blizzymadden11-Apr-02 15:03 
AnswerRe: hash_map in C++ 7? Pin
Christian Graus11-Apr-02 15:03
protectorChristian Graus11-Apr-02 15:03 
GeneralRe: hash_map in C++ 7? Pin
blizzymadden11-Apr-02 15:16
blizzymadden11-Apr-02 15:16 
GeneralRe: hash_map in C++ 7? Pin
Christian Graus11-Apr-02 15:20
protectorChristian Graus11-Apr-02 15:20 
GeneralRe: hash_map in C++ 7? Pin
Tim Smith11-Apr-02 16:26
Tim Smith11-Apr-02 16:26 
GeneralRe: hash_map in C++ 7? Pin
Mike Nordell11-Apr-02 16:58
Mike Nordell11-Apr-02 16:58 
GeneralRe: hash_map in C++ 7? Pin
Mike Nordell11-Apr-02 16:56
Mike Nordell11-Apr-02 16:56 
GeneralRe: hash_map in C++ 7? Pin
Christian Graus11-Apr-02 17:33
protectorChristian Graus11-Apr-02 17:33 
GeneralUtilizing the CProgressCtrl :: MFC Pin
valikac11-Apr-02 13:54
valikac11-Apr-02 13:54 
GeneralRe: Utilizing the CProgressCtrl :: MFC Pin
Christian Graus11-Apr-02 14:19
protectorChristian Graus11-Apr-02 14:19 
GeneralRe: Utilizing the CProgressCtrl :: MFC Pin
valikac11-Apr-02 15:32
valikac11-Apr-02 15:32 
GeneralRe: Utilizing the CProgressCtrl :: MFC Pin
Roger Allen12-Apr-02 3:05
Roger Allen12-Apr-02 3:05 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.