Click here to Skip to main content
15,915,600 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: constant variable at run time Pin
Nader Elshehabi2-Sep-06 19:15
Nader Elshehabi2-Sep-06 19:15 
GeneralRe: constant variable at run time [modified] Pin
MayankT2-Sep-06 23:41
MayankT2-Sep-06 23:41 
GeneralRe: constant variable at run time Pin
Nader Elshehabi3-Sep-06 1:07
Nader Elshehabi3-Sep-06 1:07 
GeneralRe: constant variable at run time Pin
MayankT3-Sep-06 15:23
MayankT3-Sep-06 15:23 
GeneralRe: constant variable at run time Pin
Nader Elshehabi3-Sep-06 17:48
Nader Elshehabi3-Sep-06 17:48 
Questiontext buffer conversion Pin
FredrickNorge2-Sep-06 10:12
FredrickNorge2-Sep-06 10:12 
AnswerRe: text buffer conversion Pin
Waldermort2-Sep-06 11:27
Waldermort2-Sep-06 11:27 
GeneralRe: text buffer conversion Pin
FredrickNorge2-Sep-06 12:06
FredrickNorge2-Sep-06 12:06 
GeneralRe: text buffer conversion Pin
Waldermort2-Sep-06 12:13
Waldermort2-Sep-06 12:13 
GeneralRe: text buffer conversion Pin
FredrickNorge2-Sep-06 12:16
FredrickNorge2-Sep-06 12:16 
GeneralRe: text buffer conversion Pin
Waldermort2-Sep-06 12:27
Waldermort2-Sep-06 12:27 
GeneralRe: text buffer conversion Pin
FredrickNorge2-Sep-06 12:33
FredrickNorge2-Sep-06 12:33 
GeneralRe: text buffer conversion Pin
FredrickNorge2-Sep-06 14:11
FredrickNorge2-Sep-06 14:11 
GeneralRe: text buffer conversion Pin
Waldermort2-Sep-06 19:36
Waldermort2-Sep-06 19:36 
QuestionEdit Box multiple lines Pin
Oliver1232-Sep-06 8:03
Oliver1232-Sep-06 8:03 
I want to develop several lines of text within my program. Then I want to display all the lines in an edit box at the same time. Say I have ten lines of text. I want to manipulate those lines, then display all ten lines at one time in the edit box. The edit box would never show more than ten lines at any one time.

Problem: I can't get more than one line at a time to display.

Edit box is set to multiline and want return.

Here is what I tried:

void CTestEditBoxDlg::OnButton1()
{
void CTestEditBoxDlg::OnButton1()
{
CString sString1 = "First Line\nSecond Line\n...Last Line\n";
m_Edit1 = sString1;
UpdateData(FALSE);
}
}



Any ideas? Is an edit box the wrong approach?
AnswerRe: Edit Box multiple lines Pin
Oliver1232-Sep-06 8:06
Oliver1232-Sep-06 8:06 
GeneralRe: Edit Box multiple lines Pin
James Brown2-Sep-06 8:09
James Brown2-Sep-06 8:09 
GeneralRe: Edit Box multiple lines Pin
Oliver1232-Sep-06 11:39
Oliver1232-Sep-06 11:39 
QuestionHide System Menu Close (X) button for MessageBox Pin
Pradeep.Reddy2-Sep-06 3:47
Pradeep.Reddy2-Sep-06 3:47 
AnswerRe: Hide System Menu Close (X) button for MessageBox Pin
Jun Du2-Sep-06 6:37
Jun Du2-Sep-06 6:37 
AnswerRe: Hide System Menu Close (X) button for MessageBox Pin
Cristian Amarie2-Sep-06 7:01
Cristian Amarie2-Sep-06 7:01 
GeneralRe: Hide System Menu Close (X) button for MessageBox Pin
Pradeep.Reddy3-Sep-06 17:59
Pradeep.Reddy3-Sep-06 17:59 
AnswerRe: Hide System Menu Close (X) button for MessageBox Pin
Waldermort2-Sep-06 7:57
Waldermort2-Sep-06 7:57 
QuestionMemory managment Pin
Waldermort2-Sep-06 3:44
Waldermort2-Sep-06 3:44 
AnswerRe: Memory managment Pin
PJ Arends2-Sep-06 5:31
professionalPJ Arends2-Sep-06 5:31 

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.