Click here to Skip to main content
15,913,587 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How do i read internet files through C++? Pin
Ganesh_T1-May-06 0:46
Ganesh_T1-May-06 0:46 
Questionget current directory Pin
rahultaing30-Apr-06 15:13
rahultaing30-Apr-06 15:13 
AnswerRe: get current directory Pin
Demian Panello30-Apr-06 16:29
Demian Panello30-Apr-06 16:29 
QuestionMultiple Views Pin
Demian Panello30-Apr-06 12:24
Demian Panello30-Apr-06 12:24 
AnswerRe: Multiple Views Pin
Ryan Binns30-Apr-06 18:19
Ryan Binns30-Apr-06 18:19 
GeneralRe: Multiple Views Pin
Demian Panello1-May-06 5:43
Demian Panello1-May-06 5:43 
QuestionRe: Multiple Views Pin
David Crow1-May-06 6:11
David Crow1-May-06 6:11 
AnswerRe: Multiple Views Pin
Demian Panello1-May-06 6:38
Demian Panello1-May-06 6:38 
Yes m_dumpData is not empty, (I could dump the lines in the debug window) and I put a break in the line SetWindowText() and I could see what tmp contain, (all the text). But it looks like I need some refresh or something like that 'cause after calling SetWidowText() the scroll bars apears, but I can't see the text inside the edit view.
This is all my code in CMyEditView::OnUpdate() handle:

int i;<br />
<br />
if(GetDocument()->FileType== 1)<br />
{<br />
 CString tmp;<br />
 for(i=0; i < GetDocument()->m_dumpData.GetSize(); i++)<br />
 {<br />
  tmp += GetDocument()->m_dumpData[i]; <br />
  TRACE("\n%s", m_dumpData[i]);  // I could see the text in the output window			<br />
  }<br />
// I can't trace tmp because it's too long for macro TRACE, but I could see it in the watch window.		<br />
 GetEditCtrl().SetWindowText(tmp); <br />
<br />
 TRACE("\nString length: %i", tmp.GetLength());  <br />
<br />
// May I need some refresh here???<br />
		<br />
}


Thank you


Demian.

"I have always wished that my computer would be as easy to use as my
telephone. My wish has come true. I no longer know how to use my telephone."

-Bjarne Stroustrup, computer science professor, designer of C++
programming language (1950- )
GeneralRe: Multiple Views Pin
David Crow1-May-06 7:18
David Crow1-May-06 7:18 
GeneralRe: Multiple Views Pin
Demian Panello1-May-06 7:26
Demian Panello1-May-06 7:26 
QuestionRe: Multiple Views Pin
David Crow1-May-06 7:38
David Crow1-May-06 7:38 
AnswerRe: Multiple Views Pin
Demian Panello1-May-06 8:20
Demian Panello1-May-06 8:20 
AnswerRe: Multiple Views Pin
Demian Panello1-May-06 8:27
Demian Panello1-May-06 8:27 
GeneralRe: Multiple Views Pin
Maxwell Chen1-May-06 5:45
Maxwell Chen1-May-06 5:45 
GeneralRe: Multiple Views Pin
Demian Panello1-May-06 6:22
Demian Panello1-May-06 6:22 
GeneralRe: Multiple Views Pin
David Crow1-May-06 7:20
David Crow1-May-06 7:20 
GeneralRe: Multiple Views Pin
Maxwell Chen1-May-06 7:44
Maxwell Chen1-May-06 7:44 
GeneralRe: Multiple Views Pin
Demian Panello1-May-06 8:07
Demian Panello1-May-06 8:07 
Questiontypedef question Pin
theladsmith30-Apr-06 12:01
theladsmith30-Apr-06 12:01 
AnswerRe: typedef question Pin
Stephen Hewitt30-Apr-06 13:42
Stephen Hewitt30-Apr-06 13:42 
GeneralRe: typedef question Pin
theladsmith30-Apr-06 21:33
theladsmith30-Apr-06 21:33 
GeneralRe: typedef question Pin
Stephen Hewitt30-Apr-06 21:42
Stephen Hewitt30-Apr-06 21:42 
GeneralRe: typedef question Pin
theladsmith1-May-06 1:43
theladsmith1-May-06 1:43 
GeneralRe: typedef question Pin
Stephen Hewitt1-May-06 13:52
Stephen Hewitt1-May-06 13:52 
GeneralRe: typedef question Pin
theladsmith1-May-06 21:58
theladsmith1-May-06 21:58 

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.