Click here to Skip to main content
15,897,519 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalmethod call quiry Pin
gman200822-Jan-08 10:20
gman200822-Jan-08 10:20 
GeneralRe: method call quiry Pin
Nitheesh George22-Jan-08 21:27
Nitheesh George22-Jan-08 21:27 
GeneralRe: method call quiry Pin
CPallini22-Jan-08 21:38
mveCPallini22-Jan-08 21:38 
GeneralRe: method call quiry Pin
gman200823-Jan-08 1:45
gman200823-Jan-08 1:45 
GeneralSetting Folder Permission During Installation Pin
KMerker22-Jan-08 8:11
KMerker22-Jan-08 8:11 
General"an unnamed file contained an unexpected object" Pin
Dave Calkins22-Jan-08 7:35
Dave Calkins22-Jan-08 7:35 
GeneralRe: "an unnamed file contained an unexpected object" Pin
Dave Calkins22-Jan-08 7:43
Dave Calkins22-Jan-08 7:43 
GeneralRe: "an unnamed file contained an unexpected object" Pin
Stephen Hewitt22-Jan-08 12:30
Stephen Hewitt22-Jan-08 12:30 
QuestionWhat is the syntax of a static int array to array structure? Pin
Hakan Bulut22-Jan-08 5:46
Hakan Bulut22-Jan-08 5:46 
AnswerRe: What is the syntax of a static int array to array structure? Pin
David Crow22-Jan-08 5:59
David Crow22-Jan-08 5:59 
GeneralRe: What is the syntax of a static int array to array structure? Pin
Hakan Bulut22-Jan-08 6:24
Hakan Bulut22-Jan-08 6:24 
AnswerRe: What is the syntax of a static int array to array structure? Pin
Florin Crişan22-Jan-08 6:02
Florin Crişan22-Jan-08 6:02 
GeneralGDI+ region and rects Pin
bob1697222-Jan-08 5:29
bob1697222-Jan-08 5:29 
GeneralRe: GDI+ region and rects Pin
CPallini22-Jan-08 5:37
mveCPallini22-Jan-08 5:37 
GeneralRe: GDI+ region and rects Pin
bob1697222-Jan-08 6:30
bob1697222-Jan-08 6:30 
GeneralRe: GDI+ region and rects Pin
Mark Salsbery22-Jan-08 6:17
Mark Salsbery22-Jan-08 6:17 
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 

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.