Click here to Skip to main content
15,868,016 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: GDI+ region and rects Pin
bob1697222-Jan-08 6:32
bob1697222-Jan-08 6:32 
GeneralRe: GDI+ region and rects Pin
Mark Salsbery22-Jan-08 6:45
Mark Salsbery22-Jan-08 6:45 
Questionhow to create Vista style MFC tool bar Pin
sarat22-Jan-08 4:26
sarat22-Jan-08 4:26 
Generalsend continuos data to an edit control for display Pin
LCI22-Jan-08 3:49
LCI22-Jan-08 3:49 
QuestionRe: send continuos data to an edit control for display Pin
CPallini22-Jan-08 3:56
mveCPallini22-Jan-08 3:56 
QuestionRe: send continuos data to an edit control for display Pin
David Crow22-Jan-08 4:16
David Crow22-Jan-08 4:16 
GeneralRe: send continuos data to an edit control for display Pin
LCI22-Jan-08 5:14
LCI22-Jan-08 5:14 
GeneralRe: send continuos data to an edit control for display Pin
David Crow22-Jan-08 5:55
David Crow22-Jan-08 5:55 
Neither of these will preserve what is currently in the edit control.

LCI wrote:
m_Control.SetWindowText((LPCSTR)data[lop]);
UpdateData(FALSE);


When using a CEdit control, or any other time for that matter, UpdateData() is not necessary.

You can do something like:

for (int lop = 1; lop < 100; lop++)
{
    CString str;
    m_Control.GetWindowText(str);
    str += data[lop];
    m_Control.SetWindowText(str);
} 
Or you could just continually add to the end of the edit control as has already been suggested.

"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman

"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne


GeneralRe: send continuos data to an edit control for display Pin
krmed22-Jan-08 7:13
krmed22-Jan-08 7:13 
GeneralRe: send continuos data to an edit control for display Pin
Wes Aday22-Jan-08 4:31
professionalWes Aday22-Jan-08 4:31 
GeneralRe: send continuos data to an edit control for display Pin
LCI22-Jan-08 4:57
LCI22-Jan-08 4:57 
GeneralRe: send continuos data to an edit control for display [modified] Pin
Cedric Moonen22-Jan-08 4:35
Cedric Moonen22-Jan-08 4:35 
Questionhow to calculate any amont minimum? Pin
gentleguy22-Jan-08 2:54
gentleguy22-Jan-08 2:54 
AnswerRe: how to calculate any amont minimum? Pin
Maximilien22-Jan-08 2:58
Maximilien22-Jan-08 2:58 
AnswerRe: how to calculate any amont minimum? Pin
CPallini22-Jan-08 3:01
mveCPallini22-Jan-08 3:01 
AnswerRe: how to calculate any amont minimum? Pin
David Crow22-Jan-08 4:10
David Crow22-Jan-08 4:10 
JokeRe: how to calculate any amont minimum? Pin
CPallini22-Jan-08 4:29
mveCPallini22-Jan-08 4:29 
Generalin fo needed on Gradient fill Pin
sarat22-Jan-08 1:53
sarat22-Jan-08 1:53 
QuestionRe: in fo needed on Gradient fill Pin
CPallini22-Jan-08 2:14
mveCPallini22-Jan-08 2:14 
GeneralRe: in fo needed on Gradient fill Pin
sarat22-Jan-08 4:04
sarat22-Jan-08 4:04 
GeneralRe: in fo needed on Gradient fill Pin
sarat22-Jan-08 18:56
sarat22-Jan-08 18:56 
GeneralRe: in fo needed on Gradient fill Pin
sarat22-Jan-08 20:38
sarat22-Jan-08 20:38 
GeneralTypedef nightmare! [modified] Pin
Lea Hayes22-Jan-08 1:47
Lea Hayes22-Jan-08 1:47 
QuestionRe: Typedef nightmare! Pin
CPallini22-Jan-08 2:04
mveCPallini22-Jan-08 2:04 
GeneralRe: Typedef nightmare! Pin
Lea Hayes22-Jan-08 2:28
Lea Hayes22-Jan-08 2:28 

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.