Click to See Complete Forum and Search --> : CEdit or CListCtrl do not display text


Steve White
March 29th, 1999, 10:28 AM
Hi,

I am trying to display a list of information as it occures in a dialog. I thought that a CListBox would be the best

method but I can not get it to update and display the text that is being sent. I have also tried a CEdit ctrl with the

same problem. If I use a CStatic string however, it will work but does not provide for scrolling text with a scroll

bar. I have tried to Invalidate on the control and CDialog::UpdateData(..) with both true and false but the control

remains happily blank.

CListBox attempt...

m_export_status.SetTextColor(COLORREF(0x00FF0000));

m_export_status.InsertItem(LVIF_TEXT,status);

m_export_statusX.LineScroll(1, 0 );

CEdit attempt

m_export_status += CString(status) + "\n";

m_export_statusX.Invalidate();


CDialog::UpdateData( FALSE );


Any suggestions?

Thanks

Bore
March 29th, 1999, 10:41 AM
Just a guess, but does your DoDataExchange() function have the appropriate DDX call to transfer the data between the member variable and the dialog? If not, then this is your problem. I don't think you need Invalidate(), or at least I don't when I do this sort of thing.