Click here to Skip to main content
15,909,822 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: search Pin
David Crow20-Jan-05 4:55
David Crow20-Jan-05 4:55 
GeneralRe: search Pin
toxcct20-Jan-05 6:10
toxcct20-Jan-05 6:10 
GeneralRe: search Pin
David Crow20-Jan-05 6:57
David Crow20-Jan-05 6:57 
GeneralRe: search Pin
toxcct20-Jan-05 7:08
toxcct20-Jan-05 7:08 
GeneralRe: connecting database Pin
David Crow20-Jan-05 5:37
David Crow20-Jan-05 5:37 
GeneralAutomatically close message box Pin
sandhyanp20-Jan-05 3:37
sandhyanp20-Jan-05 3:37 
GeneralRe: Automatically close message box Pin
RaajaOfSelf20-Jan-05 9:37
RaajaOfSelf20-Jan-05 9:37 
QuestionHow do I insert a new line in a window? Pin
hugPW20-Jan-05 3:33
hugPW20-Jan-05 3:33 
Thanks to generous help, I have nearly finished my little project and have one more query. If I want to send a new line command how is it done? I have tried \n but that doesn't do it.
Hopefully the code below will explain better what i am trying to do.

// TODO: Add your command handler code here
CEdit &edit = GetEditCtrl();

CString strText;
CString msg = " Line is ";


edit.GetWindowText(strText);// text XYZ is on 1 line

while (!string.IsEmpty())
{
_strrev(strText); //line 1 is reversed ZYX
// display 1 character per line
// Z // Y // X
}

edit.SetWindowText(msg+strText);

GetDocument()->SetModifiedFlag(TRUE) ;

}

Thank you once more!



AnswerRe: How do I insert a new line in a window? Pin
toxcct20-Jan-05 3:40
toxcct20-Jan-05 3:40 
GeneralRe: How do I insert a new line in a window? Pin
hugPW20-Jan-05 5:56
hugPW20-Jan-05 5:56 
GeneralTest Program in VC++....need HELP !!! Pin
kritharan20-Jan-05 3:23
kritharan20-Jan-05 3:23 
GeneralRe: Test Program in VC++....need HELP !!! Pin
toxcct20-Jan-05 3:39
toxcct20-Jan-05 3:39 
GeneralComboBox XP Style Pin
rashan20-Jan-05 3:11
rashan20-Jan-05 3:11 
GeneralRe: ComboBox XP Style Pin
Mr. Accident22-Jan-05 17:13
Mr. Accident22-Jan-05 17:13 
GeneralDrawing for a pathfinding test program Pin
Serrrix20-Jan-05 2:49
Serrrix20-Jan-05 2:49 
QuestionWhere I can store my informations? Pin
pearlfromindiaaaa20-Jan-05 0:52
pearlfromindiaaaa20-Jan-05 0:52 
AnswerRe: Where I can store my informations? Pin
toxcct20-Jan-05 2:16
toxcct20-Jan-05 2:16 
GeneralRe: Where I can store my informations? Pin
Anonymous20-Jan-05 2:37
Anonymous20-Jan-05 2:37 
GeneralRe: Where I can store my informations? Pin
toxcct20-Jan-05 2:46
toxcct20-Jan-05 2:46 
AnswerRe: Where I can store my informations? Pin
Antony M Kancidrowski20-Jan-05 2:53
Antony M Kancidrowski20-Jan-05 2:53 
AnswerRe: Where I can store my informations? Pin
David Crow20-Jan-05 2:55
David Crow20-Jan-05 2:55 
AnswerRe: Where I can store my informations? Pin
Graham Bradshaw20-Jan-05 5:13
Graham Bradshaw20-Jan-05 5:13 
GeneralRe: Where I can store my informations? Pin
toxcct20-Jan-05 6:31
toxcct20-Jan-05 6:31 
GeneralRe: Where I can store my informations? Pin
Anonymous20-Jan-05 17:16
Anonymous20-Jan-05 17:16 
QuestionHow to open an old VC++ 6 project in Visual Studio .NET 2003? Pin
Rainer Koschnick20-Jan-05 0:49
Rainer Koschnick20-Jan-05 0:49 

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.