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
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